Original Post
hello i am trying to load a simple bitmap using the code provided by tricks of the windows game programming gurus book well the problem i have is that the info, header, and palette seem to be read just fine but the actual bitmap data shows up as null
my pointer to the data is this
UCHAR *buffer
i then allocate memory for it and call readfile
ReadFile(file_handle,&bitmap->buffer,bitmap->bitmapinfoheader.biSizeImage,&bytesRead,NULL);
when done if i check the contents of bitmap->buffer there is nothing there why is this happening??
thanks if anyone can help