LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-07-2004, 03:10 PM   #1
neozero62
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Rep: Reputation: 15
Question 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
 
Old 05-07-2004, 04:03 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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"??? ;-)
 
Old 05-07-2004, 04:06 PM   #3
neozero62
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Original Poster
Rep: Reputation: 15
"PS:
What part of this was a "Linux question"??? ;-) "

The part I diddint Mention ;-)
 
Old 05-07-2004, 04:11 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
So did I help answer your question?
 
Old 05-07-2004, 04:17 PM   #5
nodger
Member
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware 9.1, Ubuntu
Posts: 192

Rep: Reputation: 30
MFC? Wrong forum

Wrong SITE
 
Old 05-07-2004, 04:29 PM   #6
neozero62
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Original Poster
Rep: Reputation: 15
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......
 
Old 05-08-2004, 08:40 AM   #7
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
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.
 
Old 05-10-2004, 04:58 AM   #8
nodger
Member
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware 9.1, Ubuntu
Posts: 192

Rep: Reputation: 30
does it say that?

well...don`t I feel like the asshole
 
Old 05-10-2004, 10:18 AM   #9
kooch
Member
 
Registered: Mar 2004
Location: Upstate NY
Distribution: Slackware/YDL
Posts: 77

Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line question shadoweyez Linux - Software 2 11-18-2005 06:28 PM
useradd from command line question Strixy Linux - Newbie 4 08-05-2005 06:58 PM
Command line question satimis Linux - General 14 06-20-2005 09:46 PM
command line question phonecian Linux - Software 2 10-09-2004 08:36 AM
command line question... warheros Linux - Newbie 12 06-25-2003 04:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration