i don't know the exact terminology for it so i'm taking a bit out of XLS that i know,
how do you or can you pass control of a programme to another file?
i don't know the exact terminology for it so i'm taking a bit out of XLS that i know,
how do you or can you pass control of a programme to another file?
WhAtHA hell Is GoInG ON
XLS?
pass control to file?
What are you talking about?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
ok, can't be ........ed explaining it at the moment i'll ask again l8terOriginally Posted by vart
WhAtHA hell Is GoInG ON
do you mean pass control to another program? such as opening Mozilla or Internet Explorer applications from your program?
Originally Posted by DavidP
yes exactly?
WhAtHA hell Is GoInG ON
There are various ways to do such a thing. Many methods are dependent upon what OS or system you are using.
The most basic way is:
system ( char * );
In other words, in my code I would write:
system ( "firefox.exe" );
And it would open firefox. but that isn't really the best way to do things most of the time. I bet there are some good tutorials on this if you google it.
In fact I think there's an FAQ entry. Search for "run program system".
You could always take code from your other program and use it in your current one, assuming you're running another program that you wrote/have access to the code for.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.