ATL COM Support MFC的问题一个!

lngjw 2002-06-12 04:36:34
--------------------Configuration: atl - Win32 Debug--------------------
Compiling...
atl.cpp
c:\cs\atl\atl_i.c(38) : error C2370: 'LIBID_ATLLib' : redefinition; different storage class
c:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(79) : see declaration of 'LIBID_ATLLib'
Error executing cl.exe.

atl.dll - 1 error(s), 0 warning(s)

帮忙看看吧,为什么!
...全文
46 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Goesthe 2002-06-12
  • 打赏
  • 举报
回复
都是工程名字‘ATL‘惹的祸:)和VC的ATL冲突了,改个名字就好了
PioneerMan 2002-06-12
  • 打赏
  • 举报
回复
打补丁没有?VC的SP5
其它几个不能下载,压缩后重新上传。 Learn how to build sophisticated COM objects using C++ and IDL, as well as how ATL supplies support for several COM procedures. Understanding COM takes time and energy. I can say with great confidence that there is always more to learn. However, as with most technologies, COM does provide a core body of knowledge that works as the backbone for just about everything else. For example, once you understand the building blocks of interfaces, coclasses, class factories, and COM binaries, the foundation is laid for numerous related aspects of COM, such as the ActiveX control, distributed COM, and connectable objects (just to name a few). The relationship between COM and the numerous ActiveX technologies out there can be equated to an understanding of mathematics and the various applied sciences. If you don't understand how to work with basic algebraic equations, you can forget taking classes in physics, chemistry, and biology. The same holds true here: Without an understanding of the algebra of COM, forget the science of ActiveX. Moreover, without an understanding of COM, forget ATL. Once an individual has come to understand the core building blocks of the COM architecture, the next logical step is to adopt a component framework to help lessen the burden of repetitive code. ATL is the C++ developer's COM framework of choice. With ATL by your side, you can successfully spend less time handing out interface pointers and more time concentrating on the domain-specific coding task at hand. However, an ATL developer who does not understand the architecture of COM is no better off than an MFC developer who has no understanding of the central Win32 APIs. This book offers a firm foundation in COM, as well as the ATL framework.

3,248

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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