#include <comutil.h> cause errors

拟墨画扇 提交于 2019-12-03 02:31:21
Alex F

According to MSDN, _bstr_t requires comsuppw.lib. Add this library to the linker dependencies list.

try to include comdef.h, don't include comutil.h

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!