7,540
社区成员
发帖
与我相关
我的任务
分享
CString str;
CService *debug = new CService;
//int *m4=(int*)malloc(MAX_PATH);
//BSTR *hi =(BSTR*)malloc(sizeof(BSTR));
CComBSTR hiResult;
HRESULT hr;
//hr = debug->AddNumbers(m1,m2,m4);
hr = debug->HelloWorld(&hiResult);
if (FAILED(hr))
{
AfxMessageBox("调用失败!");
}
else
{
CString str(hiResult);
MessageBox(str,"调用结果");
}
delete debug;