From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Bitmap Warnings Date: Fri, 30 Jan 1998 19:17:23 +0000 Organization: None Distribution: world Message-ID: References: <199801300018 DOT NAA24254 AT cirrostratus DOT netaccess DOT co DOT nz> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 27 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Richard Chappell writes: >Why is that, using Allegro, I get a warning for the line: > >bmp=load_bmp("bmp/welcome.bmp",pal); > >Whats wrong with it? It is impossible to say without seeing some more of your code. Most likely you have declared either your bmp or your pal variable as the wrong type: bmp should be a BITMAP *, and pal should be a PALETTE or an RGB[256]. The ex15.c program demonstrates how to load and display an image file: look at this to see how you should declare these variables. >The warning is something like "converting int to pointer without a >cast" or it might be the other way round (pointer to int), but it's >SOMETHING like that, anyway. Please try to be as precise as possible when asking for help: if you don't give specific information in your question, it is very hard for anyone to give you an accurate answer in reply! -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ "Pigs use it for a tambourine" - Frank Zappa