Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Attaching Programs

Author
Message
Browncow
18
Years of Service
User Offline
Joined: 3rd Nov 2006
Location:
Posted: 23rd Nov 2006 06:24
One Simple question I think. Is it possible to connect programs I make to a main program? Say like attach a menu I made to the game?
Bozzy
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location: Birmingham, UK
Posted: 23rd Nov 2006 08:17 Edited at: 23rd Nov 2006 08:24
I think so using the execute file command. But wouldnt it be easier to just use subroutine? Or even just put the menu at the top of the program? If it's just for the principal though then just use execute file
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 23rd Nov 2006 14:57
Yep, it just depends on how you want to do it. For example lets say you've made a program that gets the user's connection info so they can connect to a live game. Once you've obtained all the information, you could then write it to a temporary file, use the EXECUTE FILE command to run your game, and in your game's main program read the file previously created. After reading it youd probably want to delete it as well.

There are ways to send programs data when you execute them, but thats getting a bit more complicated.

Login to post a reply

Server time is: 2024-11-27 04:29:18
Your offset time is: 2024-11-27 04:29:18