Please suggest me methods for converting from wstring to CComBstr.
I tried to convert like following but it is failing
CComBSTR BstrAddress(strID); // strID is wstring type
I am getting error as "cannot convert parameter 1 from 'std::wstring' to 'int'" Please help me regarding this
These are constructors of CComBSTR class:
MSDN
So, you could convert like this: