I know.. What I meant is; what type are the variables in the struct?
Why would you read 4 bytes if it's a 2 byte field?
Type: Posts; User: _Mike
I know.. What I meant is; what type are the variables in the struct?
Why would you read 4 bytes if it's a 2 byte field?
fread(&MainData->Info.biWidth, 2, 1, FileHandle); // problem!
fread(&MainData->Info.biHeight, 2, 1, FileHandle); // problem!
What types are biWidth and biHeight? If they are 4-byte ints and you...