home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!network.ucsd.edu!ucsbcsl!spectrum.CMC.COM!smrtstr!frank
- From: frank@smartstar.com (Frank Dziuba)
- Newsgroups: comp.os.ms-windows.programmer.win32
- Subject: How do I enable output to the console when running a WINMAIN app?
- Message-ID: <1992Dec16.214514.10696@smartstar.com>
- Date: 16 Dec 92 21:45:14 GMT
- Organization: SmartStar Corp. / Signal Technolgy Inc.
- Lines: 16
-
-
- 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
-