|
From: Krzysztof K. <sa...@op...> - 2003-06-20 12:26:55
|
Hello Daniel, Friday, June 20, 2003, 2:06:04 PM, you wrote: DG> If the bitmap couldn't be found though the error message would say so DG> wouldn't it? DG> There's another GetLastError() call I think called GetLastErrorEx() or DG> something (look on MSDN.com), maybe that will give more details? DG> Glad to hear the code works on someone's machine anyway! DG> Maybe the bitmap is too difficult to read? Is it a simple image? DG> Krzysztof what colour depth was your bitmap, maybe the code fails if it is DG> 24-bit or above perhaps? That matters a lot I hear with bitmaps. The bitmap params was: 144 x 15 x 16 colors I checked it also with bigger image: 1024 x 768 x 24bits (colors = 16.7 mln) With both of them program works without errors. A small hiny: LoadImage have problems with loading compressed bitmaps... I don't know why, my friend told me this and i trust him, because he is writting Windows apps for a long time. (Compressed bitmaps use RLE encoding scheme (Run Length Encoding)). He use: OleInitialize and OleLoadPicturePath I have his code how to do this but it is written in assembler... -- Best regards, Krzysztof mailto:sa...@op... http://www.saveman.w.pl |