PDA

View Full Version : SOS: need for code to return image data from bmp



07-01-2001, 09:02 PM
well, this is NeHe's code for this function, I could't get it to work ( problem linking ( one unresolved external auxDIBImageLoadA@4)
if someone has code equivalent to this please i would apreciate it:


AUX_RGBImageRec *LoadBMP(char *Filename)
{
FILE *File=NULL;

File=fopen(Filename,"r");

if(File)
{
fclose(File);
return auxDIBImageLoad(Filename);
}
return NULL;
}

rts
07-01-2001, 09:29 PM
You probably need to link in glaux.lib or some such thing (I don't know exactly, I don't do Windows).

Ritchie
07-02-2001, 09:18 AM
Yes, rts is right. You need to link glaux in.

With VC++ 6.0 go to the project settings, and in the linker tab add glaux.lib to the list. It should work now.

07-02-2001, 10:24 AM
OK Thanks a lot! You rule!