|
-
Apr 12th, 2020, 06:51 PM
#16
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.
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
|