Skip to main content

2.6. 베이스 컴포넌트 열기/닫기

2.6. 베이스 컴포넌트 열기/닫기

// Open

int          iErrCode;

hr = p_base_->Open(_bstr_t(LPCTSTR)strIpPc), _bstr_t(LPCTSTR)strIpRc), &iErrCode);

if(FAILED(hr) {                                              // failure

             // error handling..

             return;

}

 

// Close

if(p_base_) {

             HRESULT hr = p_base_->Close();

}