我可以添加MFC支持到现有的ATL COM项目 [英] Can I add MFC support to an Existing ATL COM project

查看:384
本文介绍了我可以添加MFC支持到现有的ATL COM项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ATL COM对象创建了一个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.

如果这不起作用,您可以使用File-> New-> Project from Existing Code在您的解决方案中创建一个同时使用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项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆