Board index » Visual Studio » How to create a console while running MFC
|
jimithing
|
|
jimithing
|
How to create a console while running MFC
Visual Studio301
Hi, I want to show some information of an application. Anyone knows how to dump a console while the major MFC application is running? Thanks in advance Jack - |
| Alex
Registered User |
Thu Sep 21 05:51:25 CDT 2006
Re:How to create a console while running MFC
"Jacky Luk" wrote:
QuoteI want to show some information of an application. KB105305 - "INFO: Calling CRT Output Routines from a GUI Application" support.microsoft.com/kb/105305/en-us">support.microsoft.com/kb/105305/en-us HTH Alex - |
| adebaene
Registered User |
Thu Sep 21 06:55:32 CDT 2006
Re:How to create a console while running MFCJacky Luk wrote: QuoteHi, Arnaud MVP - VC - |
| Jacky
Registered User |
Fri Sep 22 03:43:17 CDT 2006
Re:How to create a console while running MFC
Hi,
Could you please take me a little bit further? cos _O_TEXT is not recognised and besides c:\Documents and Settings\luckie\app1\app1\app1.cpp(97): error C2065: '_open_osfhandle' : undeclared identifier while I place the MS code into InitInstance() of my Application module Thanks Jack "Jacky Luk" <jl@knight.com>¼¶¼g©ó¶l¥ó·s»D:eXdkIiV3GHA.4588@TK2MSFTNGP04.phx.gbl... QuoteHi, - |
| Alex
Registered User |
Fri Sep 22 05:06:28 CDT 2006
Re:How to create a console while running MFC
"Jacky Luk" wrote:
QuoteCould you please take me a little bit further? #include <io.h> - |
| Alan
Registered User |
Fri Sep 22 13:07:50 CDT 2006
Re:How to create a console while running MFC
Trivial:
AllocConsole (); freopen ("CON", "w", stdout); Then just use printf or puts or whatever. - Alan Carre "Jacky Luk" <jl@knight.com>wrote in message QuoteHi, - |
| Tim
Registered User |
Sat Sep 23 00:08:08 CDT 2006
Re:How to create a console while running MFC
"Jacky Luk" <jl@knight.com>wrote:
QuoteHi, than this newsgroup. -- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc. - |
