From: pouzzler AT aol DOT com (pouzzler) Newsgroups: comp.os.msdos.djgpp Subject: Pointer/array understanding? Date: 5 Oct 2001 13:12:47 -0700 Organization: http://groups.google.com/ Lines: 29 Message-ID: <34539894.0110051212.1cb9a48e@posting.google.com> NNTP-Posting-Host: 195.93.50.174 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1002312767 15197 127.0.0.1 (5 Oct 2001 20:12:47 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 5 Oct 2001 20:12:47 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm trying to load/draw a bitmap from a file (PLEASE don't answer "Allegro") I searched for info, and the file is as follow: BITMAPFILEHEADER //struct heading the file BITMAPINFOHEADER //struct with info on the bitmap RGBQUAD[] //array of RGB triplets bitmapbits[] //the actual bitmap I tried reading a bitmapbit and drawing it, but it was awfully slow. How can I read ALL the bits, then draw them. It seems I must have a BITMAP struct looking like typedef struct tagBITMAP { BITMAPFILEHEADER bmfh; BITMAPINFOHEADER bmih; RGBQUAD //and it's here I don't know how bitmapbits // same } BITMAP; How can I make those arrays, not knowing their size in the first place? Is RGBQUAD *rgb; correct?