[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123[4]5678910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 13:25:52 02/16/03 Sun
Author: Al Christoph
Subject: GetDIB Failed on XP but i believe not the way that has been discusssed!

I Get a GetDIB error which i believe is unrelated to any of the previous postings. I'm using the source code that includes the comment dated Apr 03, 2002 which discuss the use of GlobalAlloc rather than getmem.

This happens only on certain bitmaps - as in my previous postings from sources which I do not control. So ..... I put a call to Win32Check in immediately after the GetDiBits code. Here is the response.

System Error. Code: 6.
The handle is invalid

Further checking suggests that the results returned by GetBitMapHeader are reasonable. The picture is displayed by Outlook Express, the XP viewer, and MS Paint. The source of the pic is an e-mail. The interesting thing is that OE saves the pic as about 200 KB while MS Paint when it edited the 200KB image increased the file size to 300+ KB. Is there a clue here? Is it perhaps a RLE Compressed Bitmap? Further, the working 300 kb file does not even exercise the code which causes grief to the 200 KB file.

I could trace things out in detail, but any suggestions from those who know things better than i would be helpful.


[ Next Thread | Previous Thread | Next Message | Previous Message ]


[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.