Executing PC games from a VB 6 form
Posted on 2002-05-08
How can you execute newer PC games such as Return to Castle Wolfenstein and Medal of Honor from a Visual Basic 6 form? I'm writing a video game menu program that executes PC games with the click of a button. It works with some games but not any that involve the use of a DOS type console at the start of the game.
The program works if you keep the .exe for the menu in the same folder as the .exe of the game. But since there is more than one game that uses startup DOS consoles I can't do that. The code that I'm using the execute the games so far is:
Dim X as Long
X = Shell("path to game", 3)
I'm hip on any ideas even if I have to write the code in a language other than VB.