MFC和Windows的依存关系 [英] MFC and Windows dependancy

查看:157
本文介绍了MFC和Windows的依存关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我通过删除CWinApp相关的内容(如InitApplication和ExitInstance),仅从应用程序中删除了MFC使用情况(其他一些文件仍在使用MFC类).

由于我的其他一些文件仍在使用MFC,因此MFC链接照原样进行.

没有应用程序的64位计算机上没有发现问题.
但是,如果没有实现IntApplication和Exitinstance,则相同的应用程序将在32位崩溃.

我是MFC的新手.请帮忙.

Hi,

I removed MFC usage from my Application alone (some of my other files are still using the MFC classes) by removing the CWinApp related stuffs like InitApplication and ExitInstance.

As my some of other file still uses MFC, MFC linkage is done as it is.

There is no problem observed in 64-bit machines w.r.t Application.
But the same application crashes in 32-bit without the implementation for IntApplication and Exitinstance.

I am new to MFC. Please help.

推荐答案

让我问一个问题:如果您应用程序的其他部分使用MFC,那么删除您所做的部分有什么意义.您尚未实现从应用程序中删除MFC依赖关系的目标,那么为什么不将它们放回原处并称之为一天呢?

编辑(对于您的第一条评论)==========

我的建议是在第一次运行您的应用程序之前完全删除MFC.您可能必须先分解,然后才重新创建应用程序,而无需使用MFC.
Let me ask this: If other parts of your app use MFC, what''s the point in removing the parts that you did. You haven''t accomplished your goal of removing the MFC dependancies from your app, so why not just put them back in and call it a day?

EDIT (for your 1st comment) =========

My advise is to remove MFC entirely BEFORE running your app the first time. You may have to break down and just recreate your application without MFC in the first place.


这篇关于MFC和Windows的依存关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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