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

li_guotao 2008-08-22 05:27:13
下面为已解决:
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.
...全文
515 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
andyywang 2010-04-28
  • 打赏
  • 举报
回复
我也遇到同样问题,而且按照上面所说的添加COM支持,依然问题没解决,请求高手帮忙!!!!
li_guotao 2008-08-22
  • 打赏
  • 举报
回复
真的非常非常感谢你, 根据你提供的线索, 但我却不能找到问题的解决方法, 很多人都遇到这个问题, 但却未有真正的解决方法, 望再赐教!
冷月清晖 2008-08-22
  • 打赏
  • 举报
回复
这里有一系列 问 答,你看看,帮顶
li_guotao 2008-08-22
  • 打赏
  • 举报
回复
很感谢你的回复, 可是里面跟我一样只是提出问题, 却无解决问题, 望高手指点迷金...

24,860

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧