Click here to Skip to main content
15,894,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using the CRegistry class Pin
Joschwenk6668-Mar-10 1:14
Joschwenk6668-Mar-10 1:14 
QuestionIs it right? Pin
Razanust29-Jun-09 2:35
Razanust29-Jun-09 2:35 
AnswerRe: Is it right? Pin
chandu00429-Jun-09 2:41
chandu00429-Jun-09 2:41 
AnswerRe: Is it right? Pin
«_Superman_»29-Jun-09 2:55
professional«_Superman_»29-Jun-09 2:55 
Questionhide the console window while using system(...) Pin
chandu00429-Jun-09 1:37
chandu00429-Jun-09 1:37 
QuestionRe: hide the console window while using system(...) Pin
Rajesh R Subramanian29-Jun-09 1:43
professionalRajesh R Subramanian29-Jun-09 1:43 
AnswerRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 1:48
chandu00429-Jun-09 1:48 
GeneralRe: hide the console window while using system(...) Pin
Rajesh R Subramanian29-Jun-09 1:59
professionalRajesh R Subramanian29-Jun-09 1:59 
chandu004 wrote:
actually, there are some Third party command mode tools which should be used in a sequence to perform some operations on wav files and text ifles.


So, you are not working with any DOS commands.

Like the other poster suggested, you can use CreateProcess to hide the window that the new process will spawn. There are ways to capture and process output from a console window:

Creating a child process with Redirected input and output[^]

Redirecting an arbitrary Console's Input/Output[^]

Writing to and read from the console - From a GUI application using the same cout/cin and printf/scanf[^]

Generally, you need not use the system() command. It has several disadvantages over the APIs and can affect the performance of your program, for what it's worth. Consider using CreateProcess, ShellExecute, or a similar API function instead.


It is a crappy thing, but it's life -^ Carlo Pallini

GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 2:09
chandu00429-Jun-09 2:09 
GeneralRe: hide the console window while using system(...) Pin
«_Superman_»29-Jun-09 2:31
professional«_Superman_»29-Jun-09 2:31 
GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 2:36
chandu00429-Jun-09 2:36 
GeneralRe: hide the console window while using system(...) Pin
«_Superman_»29-Jun-09 2:50
professional«_Superman_»29-Jun-09 2:50 
GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 3:08
chandu00429-Jun-09 3:08 
GeneralRe: hide the console window while using system(...) Pin
«_Superman_»29-Jun-09 3:09
professional«_Superman_»29-Jun-09 3:09 
GeneralRe: hide the console window while using system(...) Pin
David Crow29-Jun-09 3:23
David Crow29-Jun-09 3:23 
GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 3:47
chandu00429-Jun-09 3:47 
GeneralRe: hide the console window while using system(...) Pin
David Crow29-Jun-09 4:14
David Crow29-Jun-09 4:14 
GeneralRe: hide the console window while using system(...) Pin
chandu00430-Jun-09 21:41
chandu00430-Jun-09 21:41 
AnswerRe: hide the console window while using system(...) Pin
«_Superman_»29-Jun-09 1:44
professional«_Superman_»29-Jun-09 1:44 
GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 1:51
chandu00429-Jun-09 1:51 
GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 2:31
chandu00429-Jun-09 2:31 
GeneralRe: hide the console window while using system(...) Pin
«_Superman_»29-Jun-09 2:33
professional«_Superman_»29-Jun-09 2:33 
AnswerRe: hide the console window while using system(...) [modified] Pin
Joe Woodbury29-Jun-09 12:00
professionalJoe Woodbury29-Jun-09 12:00 
GeneralRe: hide the console window while using system(...) Pin
chandu00430-Jun-09 1:27
chandu00430-Jun-09 1:27 
QuestionQuerry. Pin
Razanust29-Jun-09 0:49
Razanust29-Jun-09 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.