home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!yev_g
- From: yev_g@athena.mit.edu (Yevgeny Gurevich)
- Subject: Re: Turbo C++ problem (bug?)
- Message-ID: <1992Jul22.155919.9804@athena.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: pelli.mit.edu
- Organization: Massachusetts Institute of Technology
- References: <1992Jul21.231527.26581@reed.edu>
- Date: Wed, 22 Jul 1992 15:59:19 GMT
- Lines: 24
-
- In article <1992Jul21.231527.26581@reed.edu> bob@reed.edu (Robert Ankeney) writes:
- >when I execute the "db_ptr += read_size" statement, nothing happens!
- .
- .
- >unsigned char huge *dbstart;
- >unsigned char huge *db_ptr;
- .
- .
- >
- > db_ptr += read_size;
- > st_size -= read_size;
- ^^^^^^^^^^^^^^^^^^^^^
- I believe that when you are working with huge pointers, you cannot simply
- add offsets to them like you are doing. The Borland programmers reference
- mentions the need to normalize the huge pointer before you perform the
- arithmetic operations on it.
-
- Yevgeny Gurevich ___/~\____/~\_/~~~~\__/~\______/~\_
- 500 Memorial Drive |____/~\__/~\__/~\______/~\____/~\__|
- Cambridge, Mass. 02139 |_____/~\/~\___/~~~\_____/~\__/~\___|
- yev_g@athena.mit.edu |______/~~\____/~~~~\______/~~\_____|
-
- --
- [ Yevgeny Gurevich ]
-