Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioninsert text in video Pin
Game-point15-Feb-10 19:48
Game-point15-Feb-10 19:48 
AnswerRe: insert text in video Pin
Code-o-mat15-Feb-10 22:09
Code-o-mat15-Feb-10 22:09 
GeneralRe: insert text in video Pin
Game-point15-Feb-10 23:45
Game-point15-Feb-10 23:45 
GeneralRe: insert text in video [modified] Pin
Code-o-mat16-Feb-10 0:06
Code-o-mat16-Feb-10 0:06 
GeneralRe: insert text in video Pin
Game-point16-Feb-10 0:16
Game-point16-Feb-10 0:16 
GeneralRe: insert text in video Pin
Code-o-mat16-Feb-10 0:32
Code-o-mat16-Feb-10 0:32 
GeneralRe: insert text in video Pin
Game-point16-Feb-10 0:35
Game-point16-Feb-10 0:35 
QuestionHow can I run an MFC Application as a Console Application Pin
Reitz00015-Feb-10 14:17
Reitz00015-Feb-10 14:17 
I have an MFC application that allows display of different types of objects. It also allows conversion of these objects to other types. The application is an MDI app. I'd like to be able to script the application. If I pass no command line parameters then it runs as a GUI application. If I type command line arguments then I would like it to run as a console application where it performs some work without returning until its done(basically convert one object to another).

I tried putting code in the init_instance but the program returns to the command prompt immediately and the operation is done by a spawned process.

Basically I want my cake and eat it too. I want a console app if command line is present otherwise a GUI application.

I've tried looking for a number of hours a few different times but always fine people talking about command line parsing for an MFC GUI application.

Can someone help me get started, maybe a few pointers?

Thanks
AnswerRe: How can I run an MFC Application as a Console Application Pin
Luc Pattyn15-Feb-10 14:23
sitebuilderLuc Pattyn15-Feb-10 14:23 
GeneralRe: How can I run an MFC Application as a Console Application Pin
«_Superman_»15-Feb-10 17:08
professional«_Superman_»15-Feb-10 17:08 
AnswerRe: How can I run an MFC Application as a Console Application Pin
Emilio Garavaglia15-Feb-10 22:44
Emilio Garavaglia15-Feb-10 22:44 
QuestionHow to get DLL's path? Pin
John578815-Feb-10 12:24
John578815-Feb-10 12:24 
AnswerRe: How to get DLL's path? Pin
Chris Losinger15-Feb-10 14:13
professionalChris Losinger15-Feb-10 14:13 
QuestionCan someone help with a TRIVIAL database problem Pin
DaveHitchman15-Feb-10 9:32
DaveHitchman15-Feb-10 9:32 
AnswerRe: Can someone help with a TRIVIAL database problem Pin
CPallini15-Feb-10 20:54
mveCPallini15-Feb-10 20:54 
Questionh_addr_list of gethostbyname returns negative values for google.com or other servers like example.com [modified] Pin
Jayapal Chandran15-Feb-10 9:18
Jayapal Chandran15-Feb-10 9:18 
AnswerRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Graham Breach15-Feb-10 10:04
Graham Breach15-Feb-10 10:04 
AnswerRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Richard MacCutchan15-Feb-10 11:19
mveRichard MacCutchan15-Feb-10 11:19 
AnswerRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
David Crow16-Feb-10 4:14
David Crow16-Feb-10 4:14 
QuestionRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Jayapal Chandran16-Feb-10 7:12
Jayapal Chandran16-Feb-10 7:12 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
David Crow16-Feb-10 7:28
David Crow16-Feb-10 7:28 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Jayapal Chandran16-Feb-10 10:17
Jayapal Chandran16-Feb-10 10:17 
QuestionRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
David Crow16-Feb-10 10:19
David Crow16-Feb-10 10:19 
AnswerRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Jayapal Chandran16-Feb-10 10:44
Jayapal Chandran16-Feb-10 10:44 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Jayapal Chandran16-Feb-10 11:43
Jayapal Chandran16-Feb-10 11:43 

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.