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

C / C++ / MFC

 
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 
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 
I have tried that, and now I convinced myself it can't be done, at least if you refuse any flashing window while running in command mode. The reason why is burried deep in the EXE file format, which holds one bit flagging console apps. When the flag is set, your app will run inside an existing console window and perform I/O in there; or when run outside a DOS window, it will create a new console and use it. When a Windows app runs, it will not send its output to an existing console.

So either you set the bit and the app will create a console window, even when you want Forms; or you don't set the bit, and your app will never use the console that launched it.

The "solution" is to build basically the same code twice, and deliver two almost identical EXE files! Dead | X|
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.

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 
QuestionRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
David Crow17-Feb-10 3:03
David Crow17-Feb-10 3:03 

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.