home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!microsoft!hexnut!johnhall
- From: johnhall@microsoft.com (John Hall)
- Subject: Re: How do I enable output to the console when running a WINMAIN app?
- Message-ID: <1992Dec17.185246.4382@microsoft.com>
- Date: 17 Dec 92 18:52:46 GMT
- Organization: Microsoft Corporation
- References: <1992Dec16.214514.10696@smartstar.com>
- Lines: 24
-
-
- BOOL AllocConsole(VOID)
-
- In article <1992Dec16.214514.10696@smartstar.com> frank@smartstar.com (Frank Dziuba) writes:
- |
- | Hi,
- |
- | I'm porting a program from Motif to ms-windows. Unfotuanately, there
- | are many printf's (for debugging) in it. I know how to include the console
- | librarys in the link, but, since the transfer address is WinMain, not ConMain
- | (or whatever it is) the values for stdin, stdout, and stderr are not
- | automatically defined.
- |
- | Has anybody else figured out how to define them in the WinMain proc
- | so that if the program is run from the CLI, it can write to the CLI console?
- |
- | thanks,
- | frank
- |
- | frank@smartstar.com
-
-
- --
- -------------------------
- My comments are my own. They are independent and unrelated to the
- views of my company , relatives or elected representatives.
-
-