Error LNK2019: unresolved external symbol "char * __stdcall _com_util::ConvertBSTRToString(wchar_t *)"

Error 2 error LNK2019: unresolved external symbol “char * __stdcall _com_util::ConvertBSTRToString(wchar_t *)” (?ConvertBSTRToString@_com_util@@YGPADPA_W@Z) referenced in function “public: char const * __thiscall _bstr_t::Data_t::GetString(void)const ” (?GetString@Data_t@_bstr_t@@QBEPBDXZ) main.obj CPUTest I met this error when programming a WMI C++ query application. Research:MSDN Says :When calling a function in a static library or DLL that takes a wchar_t type (note…

0