VS 2010 C++ CLR Library project, errors on adding comutil.h library
> Error 20 error LNK2001: unresolved
> external symbol \"extern \"C\" long
> __stdc
According to MSDN, _bstr_t
requires comsuppw.lib. Add this library to the linker dependencies list.
Add the requisite import library as per the documentation, likely Oleaut32.lib
http://msdn.microsoft.com/en-us/library/ms221236.aspx
edit: I'm assuming the Compiler COM Support library subsumes this and Alex's answer would be the preferred library.
try to include comdef.h, don't include comutil.h