CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  ATL/ActiveX/COM

我在MFC程序中使用ComObject,结果出现这种错误,大家来看看该如何解决?谢谢!

楼主cident()2005-04-03 21:40:56 在 VC/MFC / ATL/ActiveX/COM 提问

XMLCOM.cpp  
  d:\program   files\microsoft   visual   studio\vc98\atl\include\atlcom.h(2945)   :   error   C2065:   '_Module'   :   undeclared   identifier  
  d:\program   files\microsoft   visual   studio\vc98\atl\include\atlcom.h(2945)   :   error   C2228:   left   of   '.Lock'   must   have   class/struct/union   type  
  d:\program   files\microsoft   visual   studio\vc98\atl\include\atlcom.h(2947)   :   error   C2228:   left   of   '.Unlock'   must   have   class/struct/union   type  
  d:\program   files\microsoft   visual   studio\vc98\atl\include\atlcom.h(3318)   :   error   C2228:   left   of   '.m_csTypeInfoHolder'   must   have   class/struct/union   type  
  d:\program   files\microsoft   visual   studio\vc98\atl\include\atlcom.h(3344)   :   error   C2228:   left   of   '.m_csTypeInfoHolder'   must   have   class/struct/union   type  
  d:\program   files\microsoft   visual   studio\vc98\atl\include\atlcom.h(3345)   :   error   C2228:   left   of   '.AddTermFunc'   must   have   class/struct/union   type  
  d:\cbn_project\cbn\xmlcom.h(38)   :   error   C2955:   'CComObject'   :   use   of   class   template   requires   template   argument   list  
                  d:\program   files\microsoft   visual   studio\vc98\atl\include\atlcom.h(2432)   :   see   declaration   of   'CComObject'  
  d:\cbn_project\cbn\xmlcom.h(38)   :   fatal   error   C1903:   unable   to   recover   from   previous   error(s);   stopping   compilation  
  Error   executing   cl.exe.  
  问题点数:0、回复次数:1Top

1 楼jiangsheng(蒋晟.Net[MVP])回复于 2005-04-04 03:59:06 得分 0

关闭所有打开的文件;在ClassView中右键单击工程名,选择Add->New   ATL   Object,在确认添加ATL支持时选择确定,然后不选择任何对象,直接取消,然后重新编译Top

相关问题

  • 程序错误
  • 程序错误
  • 程序错误
  • ▲紧急请教:如何将DxShow中的memfile移植到mfc程序中?还有2处连接错误!
  • 用MFC做了个程序,但在没装VC的PC上显示错误,缺少MFC42D.dll文件
  • MFC AppWizard创建用了一个应用程序,但是怎么编译有错误???
  • 为什么在mfc中编译NT服务程序会出现error C2065: 'SC_HANDLE' : undeclared identifier的错误
  • explorer.exe-应用程序错误
  • 程序保护错误?
  • 程序运行错误

关键词

  • atl
  • vc
  • visual
  • program
  • 选择
  • microsoft
  • atlcom
  • xmlcom
  • cbn
  • vc98

得分解答快速导航

  • 帖主:cident

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo