Connecting Tech Pros Worldwide Forums | Help | Site Map

Need a little help with system fuction c++

Guest
 
Posts: n/a
#1: Oct 12 '05
Hi,
Im kindof new to c++... need a little help with system() function..
I use system to execute a dos program... but i want the rest of the program to continue imediately
after executing it. and not wait for the program which was executed...
any help would be appreciated...



Greg Comeau
Guest
 
Posts: n/a
#2: Oct 12 '05

re: Need a little help with system fuction c++


In article <QNOdnTA8yJXftdDeRVn-jQ@giganews.com>,
<someone@somedomain.com.invalid> wrote:[color=blue]
> Im kindof new to c++... need a little help with system() function..
>I use system to execute a dos program... but i want the rest of the program to continue imediately
>after executing it. and not wait for the program which was executed...
>any help would be appreciated...[/color]

This is beyond the scope of C++. Have a look at some of the functions
at the end of http://www.comeaucomputing.com/techtalk/#system
as but some possibilities.
--
Greg Comeau / Celebrating 20 years of Comeauity!
Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Victor Bazarov
Guest
 
Posts: n/a
#3: Oct 12 '05

re: Need a little help with system fuction c++


someone@somedomain.com.invalid wrote:[color=blue]
> Im kindof new to c++... need a little help with system() function..
> I use system to execute a dos program... but i want the rest of the program to continue imediately
> after executing it. and not wait for the program which was executed...[/color]

'system' behaviour is not specified by the Standard. Ask in a newsgroup
for your compiler. You are most likely in need of a platform-specific
way of starting a process.

V
Closed Thread