LNK2019: unresolved external symbol “void __stdcall _com_issue_error(long)” (?_com_issue_error@@YGXJ@Z) referenced in function “public: __thiscall _bstr_t::_bstr_t(unsigned short const *)” (??0_bstr_t@@QAE@PBG@Z)

I despise this error. Every time I write a new ATL or WTL app, and don’t use COM much in it, I get this. I then plow for 10 minutes throuh newsgroups to get it figured. So, hopefully Google will pick this text up and make the solution shorter for other people.

SOLUTION: #include <comdef.h>

Ben says that If #include comdef.h does not fix the unresolved externals, then make sure you are also linking against comsupp.lib