函数带有BSTR*的参数,不会用啊
用到msdn上的一个函数,
HRESULT GetDisplayNames(
BSTR* pbstrVendorID,
BSTR* pbstrProductID,
BSTR* pbstrRevision
);
三个参数都是输出量,不会使用bstr*的参选,我这样用的:
BSTR *pVenderID,*prodocutID,*pRevision;
HRESULT hr = GetDisplayNames(pVenderID,prodocutID,pRevision);
但是调试到最后一句就报错“Access Violation”,这是怎么回事啊?
多谢各位!