Mail Archives: djgpp/1997/09/23/23:26:30
At 02:52 9/22/1997 GMT, triquet frederic wrote:
>Hi there,
>I would like to know whether it is possible (if yes then how,if
>no then why) to load a program in memory, relocate it, run it
>and then go on with the first prog (just as a function call).
Huh? I don't understand what you mean by relocate. All the other stuff works
just fine.
>
>I presently use 'system("my_prog.exe");' but I would like to
>call an extern prog in an other way.
Is there something wrong with system()? The other option is spawn*(), read
about it in the libc docs.
spawnlp(P_WAIT,"my_prog.exe","my_prog.exe" /* , other args */);
>
>Last, is it possible if "my_prog.exe" is a real-mode prog ?
Yes. No changes are needed.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -