Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC VC
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 15-Feb-12 2:42am
chaiein1.8K
Edited 15-Feb-12 2:44am
v2
Comments
pasztorpisti at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
chaiein at 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 at 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 at 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)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 120
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 26 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100