Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE37421EC@probe-2.acclaim-euro.net> From: Shawn Hargreaves To: djgpp AT delorie DOT com Subject: Re: palette problem Date: Mon, 15 Mar 1999 14:36:51 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1460.8) Content-Type: text/plain Reply-To: djgpp AT delorie DOT com Lark writes: > picture = load_bmp("random.bmp", pal); > set_palette(pal); > blit(picture, screen, 0, 0, 300, 300, 100, 100); What is pal defined as? > The graphics mode as already been succesfully set to 640 by 480. > These lines compile fine, but give me the error > "Call frame traceback:" > " at load_bmp+369" Please post the rest of the traceback as well: there is some useful information in there. In this case I'll take a wild guess, although it is impossible to say for sure without seeing the rest of your code, that you have declared pal as an RGB * or a PALETTE * instead of just a PALETTE. > This is very frustrating. I am just copying source out of the > documentation and it is not working. Look at the ex15 program, and see what you are doing differently to that. I can guarantee that ex15 works correctly, so wherever the difference is, that is your problem. Shawn Hargreaves.