linking games
I've made a few games and I'm wantin to make a program where it has a menu and you can choose which game you want to play. I've tried to put them all in the same program but i had sum problems so is there a way to link different projects together and run them without puttin them in the same program?
You could put them in differnt folders and then in the parent folder put your "menu program" and use ShellExecute to run each one.
Well it's only for Windows.
ShellExecute(hWnd, "open", "game1/game1.exe", NULL, NULL, SW_SHOWNORMAL);
if you're using a console then try spawn() or exec() which I believe are in process.h
ShellExecute(hWnd, "open", "game1/game1.exe", NULL, NULL, SW_SHOWNORMAL);
if you're using a console then try spawn() or exec() which I believe are in process.h
when the user selects which game they want??
alternativly, WinExec("myprogram.exe", SW_NORMAL) and system("myprogram.exe") can be used.
alternativly, WinExec("myprogram.exe", SW_NORMAL) and system("myprogram.exe") can be used.
yeah, if the user selects case 1 and the game for that option is "Pong: Revisited", then you use ShellExecute to run "pong_revisited.exe", etc and so forth.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement