fatal error C1189: #error : This Windows CE SDK does not support mini-COM with OLE or the full DCOM

li_guotao li_guotao 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
下面为已解决:
1>C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include\atlcommem.h(71) :
error C2039: 'CoTaskMemSize' : is not a member of '`global namespace''
2>C: \Program Files \Microsoft Visual Studio 8 \VC \ce \atlmfc \include \atlcommem.h (71):
error C3861: ' CoTaskMemSize ': identifier not found
解决方法:
在stdafx.h最上面添加#include <AtlCtl.h>
或项目属性->C/C++->PreProcessor->PreProcessor Definitions Add _WIN32_WCE 定义
////////////////////////////////////////////////////////////////////////////////////////////////

当我将EVC4.0项目转换为VS2005时,出现如下错误, 望高手指点.
c:\program files\microsoft visual studio 8\vc\ce\atlmfc\include\atldefce.h(55) : fatal error C1189: #error : This Windows CE SDK does not support mini-COM with OLE or the full DCOM. One of these is required inorder to use ATL.
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部