delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/30/23:59:20

Message-Id: <199801310459.RAA02352@cirrostratus.netaccess.co.nz>
Comments: Authenticated sender is <chapmic5 AT pop3 DOT netaccess DOT co DOT nz>
From: "Richard Chappell" <chapmic5 AT cirrostratus DOT netaccess DOT co DOT nz>
To: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Date: Sat, 31 Jan 1998 16:51:42 +0000
MIME-Version: 1.0
Subject: Re: Allegro Bitmap Warnings
Reply-to: Pixnaps AT netaccess DOT co DOT nz
CC: djgpp AT delorie DOT com
In-reply-to: <OH5w1NADdi00EwI8@talula.demon.co.uk>

> 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!

I declared the variables:
BITMAP *bmp;
PALETTE pal;

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019