home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5344 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  895 b 

  1. Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!corax.udac.uu.se!odysee
  2. From: odysee@pyton.DoCS.UU.SE (Tobias Thomson)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: MUST HAVE HELP!!!!!
  5. Date: 24 Jan 93 17:06:09
  6. Organization: Dept, of Computer Systems, Uppsala University, Sweden.
  7. Lines: 19
  8. Message-ID: <ODYSEE.93Jan24170609@pyton.DoCS.UU.SE>
  9. NNTP-Posting-Host: pyton.csd.uu.se
  10.  
  11.  
  12. I have a problem with my code:
  13.             
  14.             lWhere = _llseek(hFile, 0, 0);
  15.             err    = _llseek(hFile, -lWhere, 1);
  16.             err    = _lread(hFile, &bBuf, sizeof(bBuf));
  17.  
  18.     The problem is that hFile (it's a global HFILE) != 0, after 
  19.     the last codeline (_lread..) changes from !=0 to just 0 (zero).
  20.     
  21.     I use BC++ 3.1 and Windows 3.1. The program is a Windows program
  22.     with small memory model.
  23.  
  24.     This is perhaps a FAQ but pleeeeease help me, I don't understand
  25.     a shit about this.
  26.  
  27.     T. Thompson:    odysee@kobra.csd.uu.se
  28.  
  29.  
  30.