home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1788 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.6 KB

  1. Path: sparky!uunet!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega
  2. From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: printf and Windows
  5. Message-ID: <BuFM5u.DEC@ireq.hydro.qc.ca>
  6. Date: 11 Sep 92 20:56:17 GMT
  7. References: <1992Sep8.093437@axion.bt.co.uk> <715978786snx@apusapus.demon.co.uk>
  8. Sender: news@ireq.hydro.qc.ca (Netnews Admin)
  9. Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
  10. Lines: 25
  11.  
  12. We shall not use printf or scanf or functions like that in Windows.
  13. But, is this true?
  14.  
  15. As for input functions, I understand scanf can't work.
  16. But, printf is printing on background, then it is enough for debugging,
  17. or is there some drawback (i.e. sometimes it will not work for some
  18. mysterious reason?) ?.
  19.  
  20. The same way, is fscanf, sscanf and fprintf enough reliable, or is this
  21. true only in MS-SDK 3.0?  
  22.  
  23. I am using Zortech 3.00r4 and avoided until now fopen, etc.  But now,
  24. was I right and will my programs stop to work someday, or I am safe
  25. now in using fopen?  Did I just misread the books ?  Or is there
  26. some restriction because of memory model so that while I use only
  27. local memory I am safe?
  28.  
  29. I have to use fcvt to print floating point numbers.  wsprintf does not
  30. support floating point.  But, can I use safely sprintf (with near ptr) ?
  31.  
  32. -- 
  33.   \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
  34.  /   \   Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
  35. J   __>  Un Quebec renouvele dans une Amerique renovee
  36. \_.-===                                                  Opinions ? Et pis non !
  37.