Path: 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 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 * ***************************************************************************