🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2473

BC++ and SDK editfile example

#2473
From: David_Dave_Tamashiro
Date: Tue, 07 May 1991 09:29
15 lines
1083 bytes
I recently compiled the "editfile" example in the SDK examples directory.
I got the BC++ to compile the program by creating a project file with
editfile.c, editfile.def, etc.

My problem was that the read() function would just not work.  It always
returned 0 (which caused the program to display the file error window).
I finaly got the program to work by replaceing the read() function with
_read() function.  Does anyone know why this worked??  Is the SDK example
wrong??  

I noticed _read() is supposed to be for dos while read() is supposed to
be for "UNIX".  What does the MicroSoft read() function do ??

Thanks,
Dave
Technical Details
Message-ID: <42085@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!fernwood!portal!cup.portal.com!David_Dave_Tamashiro

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!fernwood!portal!cup.portal.com!David_Dave_Tamashiro
From: David_Dave_Tamashiro@cup.portal.com
Newsgroups: comp.windows.ms.programmer
Subject: BC++ and SDK editfile example
Message-ID: <42085@cup.portal.com>
Date: 7 May 91 09:29:45 GMT
Distribution: usa
Organization: The Portal System (TM)
Lines: 15