Click here to Skip to main content
15,917,456 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Com With multiple reference conflict Pin
CPallini16-Feb-10 20:55
mveCPallini16-Feb-10 20:55 
QuestionChanging exe icon at runtime Pin
learningvisualc15-Feb-10 23:01
learningvisualc15-Feb-10 23:01 
AnswerRe: Changing exe icon at runtime Pin
Code-o-mat15-Feb-10 23:22
Code-o-mat15-Feb-10 23:22 
AnswerRe: Changing exe icon at runtime Pin
Saurabh.Garg16-Feb-10 1:01
Saurabh.Garg16-Feb-10 1:01 
QuestionInsert data of more than 4000 characters in clob datatype Pin
MsmVc15-Feb-10 21:06
MsmVc15-Feb-10 21:06 
QuestionRe: Insert data of more than 4000 characters in clob datatype Pin
David Crow16-Feb-10 3:57
David Crow16-Feb-10 3:57 
AnswerRe: Insert data of more than 4000 characters in clob datatype Pin
MsmVc16-Feb-10 19:26
MsmVc16-Feb-10 19:26 
GeneralRe: Insert data of more than 4000 characters in clob datatype Pin
David Crow17-Feb-10 3:06
David Crow17-Feb-10 3:06 
QuestionApplication Theme changes automatically Pin
Harsh Shankar15-Feb-10 20:27
Harsh Shankar15-Feb-10 20:27 
AnswerRe: Application Theme changes automatically Pin
Eugen Podsypalnikov16-Feb-10 6:41
Eugen Podsypalnikov16-Feb-10 6:41 
GeneralRe: Application Theme changes automatically Pin
Harsh Shankar17-Feb-10 6:31
Harsh Shankar17-Feb-10 6:31 
QuestionSimilar to CWin::SetForegroundWindow method in CWinAppEx Pin
mmayur15-Feb-10 19:54
mmayur15-Feb-10 19:54 
AnswerRe: Similar to CWin::SetForegroundWindow method in CWinAppEx Pin
«_Superman_»15-Feb-10 20:56
professional«_Superman_»15-Feb-10 20:56 
AnswerRe: Similar to CWin::SetForegroundWindow method in CWinAppEx Pin
KingsGambit15-Feb-10 20:58
KingsGambit15-Feb-10 20:58 
AnswerRe: Similar to CWin::SetForegroundWindow method in CWinAppEx [modified] Pin
SandipG 15-Feb-10 21:21
SandipG 15-Feb-10 21:21 
AnswerRe: Similar to CWin::SetForegroundWindow method in CWinAppEx Pin
mmayur18-Feb-10 19:37
mmayur18-Feb-10 19:37 
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 

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.