home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / win32 / 2538 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.2 KB  |  38 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!microsoft!hexnut!johnhall
  3. From: johnhall@microsoft.com (John Hall)
  4. Subject: Re: How do I enable output to the console when running a WINMAIN app?
  5. Message-ID: <1992Dec17.185246.4382@microsoft.com>
  6. Date: 17 Dec 92 18:52:46 GMT
  7. Organization: Microsoft Corporation
  8. References: <1992Dec16.214514.10696@smartstar.com>
  9. Lines: 24
  10.  
  11.  
  12. BOOL AllocConsole(VOID)
  13.  
  14. In article <1992Dec16.214514.10696@smartstar.com> frank@smartstar.com (Frank Dziuba) writes:
  15. | Hi,
  16. |     I'm porting a program from Motif to ms-windows. Unfotuanately, there
  17. | are many printf's (for debugging) in it.  I know how to include the console
  18. | librarys in the link, but, since the transfer address is WinMain, not ConMain
  19. | (or whatever it is) the values for stdin, stdout, and stderr are not
  20. | automatically defined.
  21. |     Has anybody else figured out how to define them in the WinMain proc
  22. | so that if the program is run from the CLI, it can write to the CLI console?
  23. | thanks,
  24. |     frank
  25. | frank@smartstar.com
  26.  
  27.  
  28. -- 
  29. -------------------------
  30. My comments are my own.  They are independent and unrelated to the
  31. views of my company , relatives or elected representatives.
  32.  
  33.