J
Joseph Lu
Hi, all
Could any boday tell me why I failed to create instance here in the
following code ?
Codes sample
--------------------------------------------------------------------
void CInsertDataTestDlg::OnBnClickedButton1()
{
_ConnectionPtr pMyConnect=NULL;
HRESULT hr=pMyConnect.CreateInstance(__uuidof(Connection));
if(FAILED(hr))return ;
AfxMessageBox(_T("Successfull connected!"), MB_OK)
}
Could any boday tell me why I failed to create instance here in the
following code ?
Codes sample
--------------------------------------------------------------------
void CInsertDataTestDlg::OnBnClickedButton1()
{
_ConnectionPtr pMyConnect=NULL;
HRESULT hr=pMyConnect.CreateInstance(__uuidof(Connection));
if(FAILED(hr))return ;
AfxMessageBox(_T("Successfull connected!"), MB_OK)
}