|
-
Mar 21st, 2018, 06:51 AM
#6
Re: [vb6] Enhancing VB's StdPicture Object to Support GDI+
 Originally Posted by xxdoc123
i found not load png gif in my win7 32 Chinese system too.
Code:
' sanity check. Difference in VTable addresses MUST always be 96
If Not ((nIPicVtable - p) = 96&) Then Exit Function 'this not true ,(nIPicVtable - p)=100<>96 so end
Well, that explains everything. I created that sanity check to prevent crashes if the interface VTable signature was different than I expected. From what you've posted, either the StdPicture interface has an extra function pointer than what is expected or an extra 4 byte value VB is using to track something. In any case, this will require me rethinking how to handle this scenario. It will ultimately require me to tweak the thunk.
P.S. I wonder if it has something to do with non-US systems? I've even tested this in MS Access and the 96-byte offset rule applied there too, so I thought it was a standard VB/VBA thing. Thanx for the bug report. I'll mess with an updated thunk and post that back to this thread just for your testing.
Follow up... Here's a substitute class. When you have the time, let me know if it works now. Also look at the next posting below. Since you have XP, you'll likely have problems with frmIcons loading initially.
*** attachment removed
Last edited by LaVolpe; Mar 22nd, 2018 at 10:13 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|