I've created the following struct...
By my calculations, it should equal 14 bytes. Two bytes for each short and four bytes for each int. The thing is, if I do sizeof(BMPFILEHEADER) it equals 16 and I have no clue why. Especially when if I do sizeof(int) and sizeof(short) they come out at four bytes and two bytes respectively :)Code:typedef struct {
short type;
int fileSize;
short res0;
short res1;
int dataOffset;
} BMPFILEHEADER;
I'm using gcc in Cygwin as my compiler, if that makes a difference. I'm downloading the express edition of Visual C++ 2008 as I write this to see if that makes a difference.
Any ideas?

