![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ATL/MFC
wolvesunder
这个作者很懒,什么都没留下…
展开
-
VC6 如何删除属性或方法 -ATL
最近开发ATL控件 新增一个属性后,发现c原创 2014-10-21 11:05:48 · 326 阅读 · 0 评论 -
ATL 控件 网页上的 安全提示
对于ATL来说,要消除该安全提示非常简单,就是需要将标记控件为安全的,也就是要实现IObjectSafety这个类,具体的方法如下: 1,找到你dll控件的接口实现类的.H文件,例如控件名称为“MyATL”,则头文件名称为“”继承类列表的末尾,并在上一行中添加一个逗号; public IObjectSafetyImpl 2. 将下行添加到 .h原创 2014-10-23 10:08:49 · 496 阅读 · 0 评论 -
ATL 添加事件 error C2065: 'IID__IXXXEvents' : undeclared identifier
error C2065: 'IID__IXXXEvents' : undeclared identifier原创 2014-10-22 16:33:35 · 509 阅读 · 0 评论 -
error LNK2005: _DllMain@12 already defined in xxx.OBJ
用Visual C++编写DLL,如果在new project时选了MFC DLL,而后又想写成Regular DLL,即拥有自己的DllMain()入口函数,则在build时会遇到类似如下的link错误: error LNK2005: _DllMain@12 already defined in xxx.OBJ只需要在工程设置里面,把WIN32,NDEBUG,转载 2014-10-25 23:21:49 · 349 阅读 · 0 评论 -
error LNK2001: unresolved external symbol "void __stdcall _com_issue_error (long)"
程序编译出现错误:error LNK2001: unresolved external symbol "void __stdcall _com_issue_error (long)"一般来说是缺少一个库:在project->settings->Link页中的Object/library modules加入comsupp.lib摘自:http://blog.csdn.net/livi转载 2014-10-25 23:19:40 · 532 阅读 · 0 评论 -
error C2065: '_bstr_t' : undeclared identifier
VC++ complie error: '_bstr_t' : undeclared identifiersolution:to write ' #include ' into stdafx.h原创 2014-10-27 15:10:30 · 1145 阅读 · 0 评论