🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #14130

C++ streams for Microsoft Windows

#14130
From: Thomas Antalffy
Date: Tue, 06 Mar 1990 08:14
20 lines
1328 bytes
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.
Technical Details
Message-ID: <739@runxtsa.runx.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!samsung!munnari.oz.au!cluster!metro!ipso!runxtsa!tom

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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