Click here to Skip to main content
16,022,418 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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.
Posted
Comments
#realJSOP 12-Jan-11 16:05pm    
Use the Add Comment link to respond to an answer.

1 solution

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.
 
Share this answer
 
v2
Comments
#realJSOP 12-Jan-11 16:05pm    
From OP: Your question is exactly right. I am removing the MFC dependancies step by step. I wonder about the 64 bit and 32 bit machine dependancy with MFC. I could see that, only in failure case, 32-bit crashes when there is no implementation for ExitInstance and InitApplication. Please note that My Application has no control over these functions as I am not calling it anywhere.
Espen Harlinn 12-Jan-11 17:16pm    
5+ - It's a good answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900