3,245
社区成员
发帖
与我相关
我的任务
分享
BSTR CT2Ctrl::TestFun(BSTR FAR* a, short b)
{
CString strResult;
// TODO: Add your dispatch handler code here
strResult += *a;
CString tmpStr;
tmpStr.Format(_T("%d"), b);
strResult += tmpStr;
return strResult.AllocSysString();
}
BSTR a = L"abcdefg";
CString str = m_T2.TestFun(&a, 1000);