home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / win32 / 2504 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  927 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!network.ucsd.edu!ucsbcsl!spectrum.CMC.COM!smrtstr!frank
  2. From: frank@smartstar.com (Frank Dziuba)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: How do I enable output to the console when running a WINMAIN app?
  5. Message-ID: <1992Dec16.214514.10696@smartstar.com>
  6. Date: 16 Dec 92 21:45:14 GMT
  7. Organization: SmartStar Corp. / Signal Technolgy Inc.
  8. Lines: 16
  9.  
  10.  
  11. Hi,
  12.  
  13.     I'm porting a program from Motif to ms-windows. Unfotuanately, there
  14. are many printf's (for debugging) in it.  I know how to include the console
  15. librarys in the link, but, since the transfer address is WinMain, not ConMain
  16. (or whatever it is) the values for stdin, stdout, and stderr are not
  17. automatically defined.
  18.  
  19.     Has anybody else figured out how to define them in the WinMain proc
  20. so that if the program is run from the CLI, it can write to the CLI console?
  21.  
  22. thanks,
  23.     frank
  24.  
  25. frank@smartstar.com
  26.