LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   C++ MFC Command Line Question (https://www.linuxquestions.org/questions/programming-9/c-mfc-command-line-question-179054/)

neozero62 05-07-2004 03:10 PM

C++ MFC Command Line Question
 
Hello, I am writing a program for Windows. I need to run some DOS/Command line commands. In a terminal application I can simply use the stdlib to allow me to do this. Can someone help me figure out how to do this in a MFC GUI Application? Thanks for your time,
Randy:confused:

paulsm4 05-07-2004 04:03 PM

Have you considered using the "system()" library call?

Or, if you need to manipulate the input/output streams between your MFC program and the DOS program, using "popen()" and "pclose()"?

Check MSDN for examples using the "Console API" - that might provide some additional tips.

Hope that helps .. PSM

PS:
What part of this was a "Linux question"??? ;-)

neozero62 05-07-2004 04:06 PM

"PS:
What part of this was a "Linux question"??? ;-) "

The part I diddint Mention ;-)

paulsm4 05-07-2004 04:11 PM

So did I help answer your question?

nodger 05-07-2004 04:17 PM

MFC? Wrong forum

Wrong SITE

neozero62 05-07-2004 04:29 PM

paulsm4, Yes, Thank you very much. Just trying to hide the command terminal that come up.

nodger, Yes, I know, Just a habbit, I don't like MFC eather......

deiussum 05-08-2004 08:40 AM

Quote:

Originally posted by nodger
MFC? Wrong forum

Wrong SITE

The description of the forum is:

Quote:

This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

nodger 05-10-2004 04:58 AM

does it say that?

well...don`t I feel like the asshole

kooch 05-10-2004 10:18 AM

I think we should ask that the forum description be changed. There are many places that are better to ask MS Windows specific programming questions. Just by virtue that this is kind of a Linux/Unix hub there aren't many Windows experts lying around.

We should also write up a faq detailing what is on/off topic so that we can grouch around like the comp.lang.c guys :tisk:


All times are GMT -5. The time now is 12:25 PM.