|
-
Feb 24th, 2016, 05:11 PM
#5
Re: [vb6] AddressOf for Class, Form, UC methods
I htought they were related, but it's possible the DispatchID is independant of the Ordinal / VTable.
They are independent. The DISPID or MEMBERID of the function doesn't appear to have any effect on the order that VB adds them to the vTable. I did play with hidden attributes for public methods & no harm, no foul, works ok.
However, where my logic does break is if adding WithEvents to a class. The code fails to find the final private method. This is something I will try to figure out and adjust the code or comments as needed.
Follow up: I was able to get it working perfectly for classes, but not for forms, usercontrols and property pages.
Last edited by LaVolpe; Feb 24th, 2016 at 08:46 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
|