home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8012 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!yev_g
  3. From: yev_g@athena.mit.edu (Yevgeny Gurevich)
  4. Subject: Re: Turbo C++ problem (bug?)
  5. Message-ID: <1992Jul22.155919.9804@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: pelli.mit.edu
  8. Organization: Massachusetts Institute of Technology
  9. References: <1992Jul21.231527.26581@reed.edu>
  10. Date: Wed, 22 Jul 1992 15:59:19 GMT
  11. Lines: 24
  12.  
  13. In article <1992Jul21.231527.26581@reed.edu> bob@reed.edu (Robert Ankeney) writes:
  14. >when I execute the "db_ptr += read_size" statement, nothing happens!
  15. .
  16. .
  17. >unsigned char    huge    *dbstart;
  18. >unsigned char    huge    *db_ptr;
  19. .
  20. .
  21. >
  22. >        db_ptr += read_size;
  23. >        st_size -= read_size;
  24.         ^^^^^^^^^^^^^^^^^^^^^
  25. I believe that when you are working with huge pointers, you cannot simply
  26. add offsets to them like you are doing.  The Borland programmers reference
  27. mentions the need to normalize the huge pointer before you perform the
  28. arithmetic operations on it.
  29.  
  30. Yevgeny Gurevich         ___/~\____/~\_/~~~~\__/~\______/~\_ 
  31. 500 Memorial Drive      |____/~\__/~\__/~\______/~\____/~\__|
  32. Cambridge, Mass. 02139  |_____/~\/~\___/~~~\_____/~\__/~\___|
  33. yev_g@athena.mit.edu    |______/~~\____/~~~~\______/~~\_____|
  34.  
  35. --
  36. [ Yevgeny Gurevich ]
  37.