Results 1 to 40 of 57

Thread: [vb6] IDE-Safety Thunks for subclassing, hooking and more: A new breed

Threaded View

  1. #16

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

    Re: [vb6] IDE-Safety Thunks: A new breed

    Project updated. Summary of updates:

    Major change includes reworking thunks to be smaller overall. Every thunk has destruction code that is nearly identical, along with other code that is very similar. A new "management" thunk was created that will have common-use methods that other thunks and the class can share. Related code was then removed from all existing thunks and also the clsThunks class itself -- now resides in the new thunk.

    Functions changed to properties (consistency):
    Custom Class: AddrOf, State, IsFiltered, IsManaged
    Subclasser: IsFiltered, IsManaged
    COM Hook: IsManaged, RefCount

    CreateStub removed as public method from these taskers (didn't want these executed by users):
    Callback, Custom Class, Windows Hook

    New tasker methods (requested enhancement):
    Callback: IDEredirectAddr property Get/Let added. See documentation, class comments
    -- optional wrapper updated
    -- if using TLB in post #25, cannot call these new properties using that TLB

    Taskers that can now optionally forward events to bas-modules (optional & use at your own risk)
    -- Note: IDE safety reduced when forwarding outside of the host
    Callback, Custom Class, Windows Hook, Subclass, Timer

    Class reorganized a bit, but every method had significant code changes.
    Sample project modified slightly, previous project will work with this updated class.

    A sincere "thank you" goes out to HosseinMoradi for enhancement suggestions and working with me offline for brainstorming ideas.
    Last edited by LaVolpe; Apr 13th, 2020 at 12:13 AM.
    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