Original Post
So i'm trying to read a bitmap file in my code... However the struct does not get the proper data. The file is a valid bitmap. Any suggestions? Thanks in advance.
typedef unsigned short Word;
typedef unsigned long DWord ;
typedef struct {
Word bfType;
DWord bfSize;
Word bfReserved1;
Word bfReserved2;
DWord bfOffBits;
} BITMAPFILEHEADER;
BITMAPFILEHEADER bmfh;
FILE* pFile;
pFile = fopen( "bitmap.bmp", "rb" );
fread( &bmfh, sizeof(BITMAPFILEHEADER), 1, pFile );