Can I add MFC support to an Existing ATL COM project(我可以将 MFC 支持添加到现有 ATL COM 项目吗)
问题描述
我使用 ATL COM Object 创建了一个 Shell 扩展.但是在创建过程中我没有添加 MFC 支持.我现在可以更改设置以添加 MFC 支持吗
I have created a Shell Extension using ATL COM Object . But during creation I haven't added MFC support. Can I change the setting now to add MFC support
推荐答案
是的,但我相信这样做不会自动添加所有必需的标头和#defines - 当然,您可以先尝试一下,然后检查为了确定.
Yes, but I believe that doing this won't auto-add all the required headers and #defines - of course, you could try this first, and check to be sure.
如果这不起作用,您可以使用文件->新建->现有代码中的项目"在您的解决方案中创建一个新项目,该项目同时使用 MFC 和 ATL,使用原始项目中的代码.您必须包含当前仅 ATL 版本中的任何自定义设置,但如果您在新项目中创建新的预编译头文件,它应该具有您需要打开并包含的所有 MFC 和 ATL 位.
If that does not work, you could use 'File->New->Project from Existing Code' to create a new project in your solution that uses both MFC and ATL, using the code in your original project. You would have to include any custom settings from your current ATL-only version, but if you let a new precompiled header be created in the new project, it should have all the MFC and ATL bits you need turned on and included.
这篇关于我可以将 MFC 支持添加到现有 ATL COM 项目吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我可以将 MFC 支持添加到现有 ATL COM 项目吗
基础教程推荐
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- CString 到 char* 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
