error C2065: '_bstr_t' : undeclared identifier 무엇인지?

 ATL 샘플 실행 시 다음과 같은 에러가 발생하더라구요!!제길
error C2065: '_bstr_t' : undeclared identifier
다음 레퍼런스의 Requirements 파트대로 다음을 추가해보았습니다.
http://msdn.microsoft.com/en-us/library/zthfhkd6(v=vs.71).aspx
Header: comutil.h
Lib: comsupp.lib
하지만 열받나게 여전히 다음과 같은 에러가 발생했다.
error LNK2019: unresolved external symbol "void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z) referenced in function "public: __thiscall _bstr_t::_bstr_t(char const *)" (??0_bstr_t@@QAE@PBD@Z)
다음 레퍼런스에서 답을 찾았다.
http://ohadpr.com/2006/03/solution-to-unresolved-external-symbol-_com_issue_error-_bstr_t_bstr_t/comment-page-1/#comment-533

댓글

Designed by JB FACTORY