08-30-2003, 02:54 AM
Hi.
I wrote 4 functions loading, each of them respectively BMP, TGA, JPG andf PCX.
It all worked fine.
When I moved my "graphic engine" along with mentioned functions to some DLL it stopped working, except JPG one.
For example for BMP's:
AUX_RGBImageRec* bitmap = auxDIBImageLoad(FileName);
throws an exception, don't remember excatly but something like: "Invalid DIB file format"
Does it have anything to do with incorrect bytes alignment (use maybe #pragma pack(push, 1) or something like that?) ?
It would be great if you could help me with this stupid bug.
I wrote 4 functions loading, each of them respectively BMP, TGA, JPG andf PCX.
It all worked fine.
When I moved my "graphic engine" along with mentioned functions to some DLL it stopped working, except JPG one.
For example for BMP's:
AUX_RGBImageRec* bitmap = auxDIBImageLoad(FileName);
throws an exception, don't remember excatly but something like: "Invalid DIB file format"
Does it have anything to do with incorrect bytes alignment (use maybe #pragma pack(push, 1) or something like that?) ?
It would be great if you could help me with this stupid bug.