If you link code found some error like bellow:

error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" ([email protected][email protected]@[email protected]) referenced in function "public: __thiscall _bstr_t::Data_t::Data_t(char const *)" ([[email protected][email protected]@[email protected]@Z](mailto:[email protected][email protected]@[email protected]@Z)) > >

Solve:

Try to link “comsuppwd.lib” in debug AdditionalDependencies. Link “comsuppw.lib” in release AdditionalDependencies.

Reference:

  1. http://msdn2.microsoft.com/en-us/library/t58y75c0.aspx

  2. http://www3.ccw.com.cn/club/essence/200103/532.htm


Evan

Attitude is everything