Guest_imported
New member
- Jan 1, 1970
- 0
I want to launch a game from my application with a combo box, how would i do that? I made it where i can launch paint, but that was because it didn't have a dir. look
// Did the user select to run Paint
if (strPgmName == "PAINT"
// Yes, run the program Paint
WinExec("Cbrush.exe", SW_SHOW);
It works, I don't get any errors if i use this but it doesn't launch the game.
// Did they choose Dh5
if (strPgmName == "DEER HUNTER 5"
// Yes, run the program Dh5
WinExec("Crogram Fileseer Hunter 5:Homeeer Hunter 5.exe", SW_SHOW);
what do i do??
// Did the user select to run Paint
if (strPgmName == "PAINT"
// Yes, run the program Paint
WinExec("Cbrush.exe", SW_SHOW);
It works, I don't get any errors if i use this but it doesn't launch the game.
// Did they choose Dh5
if (strPgmName == "DEER HUNTER 5"
// Yes, run the program Dh5
WinExec("Crogram Fileseer Hunter 5:Homeeer Hunter 5.exe", SW_SHOW);
what do i do??