Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can we embed a application with .exe file in our MFC application?

suppose we have a application which is already developed and .exe is present and i want to use it in my project. is this possible? and how is it done?

I want both applications displayed on the same window.
Posted
Updated 15-Feb-12 1:44am
v2
Comments
pasztorpisti 26-Jul-12 18:29pm    
I have seen only one high quality program that had an exe embedded in it, that was Process Explorer. It is a 32 bit application but it has a 64 bit version embedded, so if you start it on a 64 bit windows it writes out the 64 bit exe to disk and starts the 64 bit version because only a 64 bit executable can exploit everything on a 64 bit system. However the purpose of embedding was completely different from your case.

1 solution

I think the short answer is, no, you cannot do this. Your MFC application can start the other program, but embedding it (for example as a resource) would really not serve any useful purpose. It is also not clear what you mean by, I want both applications displayed on the same window.
 
Share this answer
 
Comments
chaiein 15-Feb-12 23:23pm    
I want both applications displayed on the same window means suppose i have a game developed and i have another application say something like virtual piano so is it possible to make a game and piano appear on the same window.example picture control where we can have a picture. is there a control where we can have another application.
Richard MacCutchan 16-Feb-12 4:25am    
I don't think there is any way to do this simply, as Windows applications always start in their own main window. I think you would need to redesign both applications to achieve this.
chaiein 22-Feb-12 6:06am    
Thank you for the information.

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