Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I have two projects.

1. MFC project

2. Win32 Project.

My main project is win32 project. But I have 2 methods which are very important in MFC project. I tried to add those two methods in my win32 project. I am unable to do it. So please help me.

Thanku.
Posted
Comments
Sergey Alexandrovich Kryukov 19-Mar-12 2:39am    
How can you expect a resolution of the problem of "two methods" if you did not even name them?
--SA
Richard MacCutchan 19-Mar-12 5:11am    
You cannot use MFC functions in a non-MFC project.

1 solution

Each MFC project is also a Win32 project, but not visa versa. It should explain you that your problem does not exist, in principle. If you have problem with some particular methods, please be so kind to ask a question about them.

—SA
 
Share this answer
 
Comments
Member 8664110 19-Mar-12 3:03am    
Thanku for the answer. I am new to visual c++. How to establish interaction between 2 projects(MFC,Win32) in visual c++? When a command from MFC project send s to win32 project, the respective action should be performed. Help me please.
Sergey Alexandrovich Kryukov 19-Mar-12 3:38am    
Interaction? One is DLL, another one uses this DLL. Don't try to make them different applications and interact -- the processes are designed to be isolated, and isolation is very good.

You can also merge them in one project. It's not clear what do you mean "command to a Win32 project". A WIN32 message? It's one of the typical ways. What's the problem though?
--SA

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