Click here to Skip to main content
15,922,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do you run an EXE file from an MFC ActiveX Control using OnCreate? I'm having a lot of trouble understanding the code...

Thanks!
TKG
Posted

1 solution

How about the Windows API function CreateProcess, http://msdn.microsoft.com/en-us/library/ms682425(v=vs.85).aspx[^]? Need any help in understanding?

—SA
 
Share this answer
 
Comments
time-killer-games 29-Mar-11 15:22pm    
Worked great! Thanks! However it works in an MFC App, it does not when I use it in IE as an ActiveX, which is what I was shooting for.
Sergey Alexandrovich Kryukov 29-Mar-11 15:25pm    
First, it it works, I suggest you formally accept my Answer.

You did not ask anything about IE. This is completely different story. Please ask another Question and explain properly what were you trying to achieve and what seems to be a problem.

Thank you,
--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