From: "Ethan Giordano" Newsgroups: comp.os.msdos.djgpp Subject: allegro datafiles Date: Wed, 22 Oct 1997 19:56:46 -0400 Organization: Cybernex Inc. Lines: 24 Message-ID: <62m3pq$482$1@news.cybernex.net> NNTP-Posting-Host: 207.198.146.74 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk i had tried using a draw routine that would load its bmps from a dat file each time the draw loop started. this is too slow so i simply want to load the bmp data in the dat file into a global array of bmps. i've got it to work for midi data : MIDI *midi; ... load the dat file ... midi = data[INTRO_MID].dat; if I do a similar thing for the bmps the bitmap pointers are all NULL: BITMAP BMPS[10]; ... load the dat file ... BMPS[0] = data[BMP_0].dat; why?? both functions load the same dat file and the midi loads in fine. -Ethan