🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Huge pointers and large bitmaps (512x512/8)

#2788
From: dara khani
Date: Wed, 22 May 1991 15:11
23 lines
1327 bytes
Petzold says that you should use huge pointer for data > 64k, otherwise
use far pointers.  
My question:
 I have a huge pointer to an image (512x512/8), and I want to 
create a DIBitmap of it.  I type cast the huge pointer variable to a 
LPSTR and pass it to the createDIB.... function.
What puzzles me is why a correct bitmap is created when a LPSTR pointer is 
not suppose to go over 64k.

I am using BC++ and small memory model (386).

thanks in advance,

			DaRa

***************************************************************************
Dara T. Khani                          Email: darak@iplmail.orl.mmc.com   *
Martin Marietta Electronic Systems     Tel: 407-356-8439                  *
Orlando, Florida                                                          *
***************************************************************************
 

  
Technical Details
Message-ID: <1991May22.151149.8892@iplmail.orl.mmc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!iplmail!darak

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!iplmail!darak
From: darak@iplmail.orl.mmc.com (dara khani)
Newsgroups: comp.windows.ms.programmer
Subject: Huge pointers and large bitmaps (512x512/8)
Message-ID: <1991May22.151149.8892@iplmail.orl.mmc.com>
Date: 22 May 91 15:11:49 GMT
Sender: darak@iplmail (dara khani)
Organization: Martin Marietta
Lines: 23