473,626 Members | 3,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need a little help with system fuction c++

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...
Oct 12 '05 #1
2 1521
In article <QN************ ********@gigane ws.com>,
<so*****@somedo main.com.invali d> wrote:
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...


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?
Oct 12 '05 #2
so*****@somedom ain.com.invalid wrote:
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...


'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
Oct 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2246
by: orion30 | last post by:
I would like to know, if an allocated variable returning by a fuction is unallocated automatically ? If no how to proceed ? Best regards ------------------------------------------------------------------------ In my case, I want to return aa. After the call of polit, is aa is
1
2045
by: orion30 | last post by:
I would like to know, if an allocated variable returning by a fuction is unallocated automatically ? If no how to proceed ? Best regards ------------------------------------------------------------------------ In my case, I want to return aa. After the call of polit, is aa is
13
1675
by: vidalsasoon | last post by:
I need to send a pointer value to a fuction :( This is what it is expecting. BaseEffect.SetValue(Microsoft.DirectX.Direct3D.EffectHandle, void*, int) The problem is the void* part. I'm tring to send an array of floats but the compiler doesn't like it. Anyway I could push it through without having to resort to "unsafe"?
1
1021
by: RSB | last post by:
I have Few <A href> tags with onclick javascript fuction. and in that javascript fuction i am using window.document.form1.submit(); to submit the page. Now this submit does a Validation before i submit the page and i want to ignore it. and as i am using <A> tags as button so there is no Causevalidation property which i can set to false. Please help me to achive this. Thanks.
3
1288
by: mike | last post by:
i've already used static fuction to make website i wanna common module that's why i used static fuctions. may be it's more than 100 fuction ...is it ok?
1
1658
by: jacuna | last post by:
the ______ keyword is used in a fuction header to indicate that a function does not return a value or to indicate that a function cotains no parameters
0
1709
by: raypjr | last post by:
Hi everyone. I need a little help with some parts of a word guessing game I'm working on. I have some parts done but unsure about others and could use a little advice. Any help is very much appreciated.Here is the code to give more detail: Dim GameOver As Boolean Dim NumWords As Integer, ThreeWordList(1000) As String, ThreeWordMeaning(1000) As String Dim R As Integer, WordsLeft(1000) As Integer Dim SecretWord As String,...
3
438
by: joel_maina | last post by:
using the following recursive defination how do i write a fuction to compute this. X0=1 Xn= (Xn/2)2, if n>0 and n is even. Xn=X*(Xn/2)2, if n>0and n is odd
2
2876
by: KUTTAN | last post by:
<System.ComponentModel.DataObjectMethodAttribute _ (System.ComponentModel.DataObjectMethodType.Select, False)> _ Public Function GetProductByProductID(ByVal productID As Integer) _ As Northwind.ProductsDataTable Return Adapter.GetProductByProductID(productID) End Function IN THE ABOVE FUCTION WHAT DOES THE FOLLOWING LINE MEANS ? <System.ComponentModel.DataObjectMethodAttribute _
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8705
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1808
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.