Click here to Skip to main content
15,909,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pointer of pointer(char** ch) Pin
Ahmad20-Mar-01 21:09
Ahmad20-Mar-01 21:09 
Generalbitwise left shift and sight shift Operators << , >> Pin
Ahmad19-Mar-01 21:35
Ahmad19-Mar-01 21:35 
GeneralRe: bitwise left shift and sight shift Operators << , >> Pin
Michael Martin20-Mar-01 16:45
professionalMichael Martin20-Mar-01 16:45 
GeneralRe: bitwise left shift and sight shift Operators << , >> Pin
Ahmad20-Mar-01 21:16
Ahmad20-Mar-01 21:16 
Generali want to know something about wingdows logon Pin
mikeluo19-Mar-01 16:04
mikeluo19-Mar-01 16:04 
GeneralCalling dos command in a win32 console application Pin
kk919-Mar-01 13:14
kk919-Mar-01 13:14 
GeneralRe: Calling dos command in a win32 console application Pin
Tim Deveaux19-Mar-01 14:10
Tim Deveaux19-Mar-01 14:10 
GeneralRe: Calling dos command in a win32 console application Pin
Michael Martin19-Mar-01 15:19
professionalMichael Martin19-Mar-01 15:19 
If I understand you correctly you wish to call a DOS command from your program without suspending the running of it or forcing a Command Prompt to appear for the running of any commands. If this is correct, you need to call the system function.

int system( const char *command );

Only problem with this is the fact it can only return an int to tell you if it worked or not and also any error that occurred via errno. If you wish to get access to the response of the DOS command you would I suppose have to pipe the DOS command to a file ie. [nRetVal = system("dir C:\Program Files > C:\Output1.txt")] and then parse the results from the file later in your program.

Hope this helps. Smile | :)

Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
GeneralCustomizing Intellisense Information Tooltips Pin
19-Mar-01 12:23
suss19-Mar-01 12:23 
GeneralRe: Customizing Intellisense Information Tooltips Pin
20-Mar-01 5:48
suss20-Mar-01 5:48 
GeneralChecking for administrative rights in windows NT Pin
19-Mar-01 12:07
suss19-Mar-01 12:07 
GeneralRe: Checking for administrative rights in windows NT Pin
Tim Deveaux19-Mar-01 13:59
Tim Deveaux19-Mar-01 13:59 
GeneralRe: Checking for administrative rights in windows NT Pin
Cathy17-Aug-01 15:09
Cathy17-Aug-01 15:09 
GeneralRecasting a void pointer Pin
Andrew Traub19-Mar-01 12:03
Andrew Traub19-Mar-01 12:03 
GeneralRe: Recasting a void pointer Pin
Jonathan Gilligan19-Mar-01 12:25
Jonathan Gilligan19-Mar-01 12:25 
GeneralSwitching between two forms Pin
19-Mar-01 9:06
suss19-Mar-01 9:06 
GeneralDisable Tree Item in Outlook bar control Pin
19-Mar-01 8:59
suss19-Mar-01 8:59 
QuestionHow to use proxy like IE Pin
TomK19-Mar-01 7:18
TomK19-Mar-01 7:18 
GeneralCHtmlView::OnBeforeNavigate2 try to spy Pin
mstuebner19-Mar-01 7:13
mstuebner19-Mar-01 7:13 
GeneralRe: CHtmlView::OnBeforeNavigate2 try to spy Pin
jerry0davis20-Mar-01 0:48
jerry0davis20-Mar-01 0:48 
GeneralRe: CHtmlView::OnBeforeNavigate2 try to spy Pin
Datacrime20-Mar-01 2:06
Datacrime20-Mar-01 2:06 
QuestionHow To Bitmap a Push button? Pin
19-Mar-01 6:28
suss19-Mar-01 6:28 
AnswerRe: How To Bitmap a Push button? Pin
Christian Graus19-Mar-01 11:47
protectorChristian Graus19-Mar-01 11:47 
QuestionProblems with CRecordset DoDataExchange !!!??? Pin
Ariel19-Mar-01 6:18
Ariel19-Mar-01 6:18 
GeneralSending an e-mail message Pin
confalonieri19-Mar-01 5:57
confalonieri19-Mar-01 5:57 

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.