Results 1 to 40 of 45

Thread: [vb6] Enhancing VB's StdPicture Object to Support GDI+

Threaded View

  1. #6

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [vb6] Enhancing VB's StdPicture Object to Support GDI+

    Quote Originally Posted by xxdoc123 View Post
    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width