Advertisement Jump to content
Sign in to follow this  
jason1

linking games

This topic is 4909 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!