SOS: need for code to return image data from bmp

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: