View Full Version: Starting other applications

C++ Learning Community > win32 api C++ programming > Starting other applications


Title: Starting other applications


Dragon - July 2, 2003 05:55 PM (GMT)
How do I start other applications from my own win32 application. For example, when a button is pressed (in WM_COMMAND), how would I start an external application?

ih8censorship - July 2, 2003 11:10 PM (GMT)
well i dont know how this would work in a win32 program but in a console window all you have to do is

CODE

system("C:\\A Folder\\aproggie.exe")



and that will start the given program for you-- like i said i dont know how this would work in a regular windows program, might not even work at all.


p.s. you have to have the double \ in there or else the compiler thinks its some sort of escape sequence and it either wont compile right or compile wrong. hope this helps!

dr voodoo - July 3, 2003 11:08 AM (GMT)
QUOTE
well i dont know how this would work in a win32 program but in a console window all you have to do is

You will need to include
CODE
#include <iostream>
using namespace std;


Dragon - July 3, 2003 04:15 PM (GMT)
Alright, I got it. Thanks for everyone's help. :)




Hosted for free by InvisionFree