Hi Pelle,
If I use the include files this works fine, but if I use the Pragma directly I get a whole mess of errors? Are the include files the only way to use these directives?
Thanks,
Mike H.
#pragma pack(push,1)
typedef struct _BMP_HEADER
{
char fIdentity[2];
long fFileSize;
long fReserved;
long fOffset;
long fHeaderSize;
long fWidth;
long fHeight;
WORD fPlanes;
WORD fBPP;
long fCompression;
long fDataSize;
long fHResolution;
long fVResolution;
long fColors;
long fImpColors;
}BMP_HEADER, *LPBMP_HEADER;
#pragma pack(pop)