Xref: utzoo comp.windows.ms:1670 comp.lang.c++:6734 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!samsung!munnari.oz.au!cluster!metro!ipso!runxtsa!tom From: tom@runxtsa.runx.oz.au (Thomas Antalffy) Newsgroups: comp.windows.ms,comp.lang.c++ Subject: C++ streams for Microsoft Windows Message-ID: <739@runxtsa.runx.oz.au> Date: 6 Mar 90 08:14:51 GMT Followup-To: poster Organization: RUNX Unix Timeshare. Sydney, Australia. Lines: 20 As all of you writing code for Microsoft Windows (MSW) are aware, MSW puts severe limitations on the C library functions one can use. In particular C stream level I/O is discouraged. MS favours low level C I/O, or even better: assembler routines. We have a quite different approach to systems development, and prefer to use high level languages, C++ in particular on my current project. Now, the problem is that C++ streams are implemented using C streams, and we have a C++ library (NIH) that happens to use streams quite extensively. This quite simply means that our library does not compile for MSW. Our solution to this is to write our own C++ stream classes, using low-level (non-stream, non-buffered) C I/O. We have just started working on implementing this, and I was wondering whether any-one else has done something similar, or has some good ideas. Thank you for any help, Thomas.