这是我的构造函数:
CMSATools::CMSATools()
{
m_pInterface = NULL;
HRESULT hr;
hr = m_pInterface.CreateInstance(__uuidof(MSAToolsLibrary::MSAToolsLibraryClass));
if (FAILED(hr))
{
// TODO }
}
m_pInterface 定义:
MSAToolsLibrary::IMSAToolsLibraryInterfacePtr m_pInterface;