Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spawning child process
Message
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00086935
Message ID:
00087577
Views:
29
>Use CreateProcess(). All the CRT functions call this API at some point.
>What is it you need to do exactly?
>
>+++ Rick ---

Rick,
I sorted this one out almost straight away using the spawn(P_WAIT,...) command. I did post a reply to my own thread, maybe you missed this. What I was having problems with was calling a child process, waiting for it to finish, then returning control to the parent. I am using dos C++ (TurboC 1.5 - v.old) to call an existing dos executable when findfirst() finds files then polling round until findfirst() finds more files. The documentation I used told me that P_WAIT would not work, only P_NOWAIT and P_OVERLAY - after I posted the thread, I thought 'what the hell!' and tried P_WAIT - it worked. Before you ask, I used my old C compiler because it's the only one I had available at the time to put on my laptop (I have since installed Borland). I do have VC++ available but not much time available to learn at the moment. Thanks for your interest anyway,
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform