|
-
Oct 12th, 2015, 04:32 AM
#11
Re: [VB6] - Calling functions by pointer.
 Originally Posted by wqweto
Insetad of keeping track with isInit can you call PatchFunc in MainComparator like this
Code:
Public Function MainComparator( _
ByVal lpAddressOfFunction As Long, _
ByVal lpItem1 As Long, _
ByVal lpItem2 As Long) As Long
PatchFunc AddressOf MainComparator
MainComparator = MainComparator(lpAddressOfFunction, lpItem1, lpItem2)
End Function
... for some wicked self-modifying code :-))
cheers,
</wqw>
Nice advice. It needs to test it on the compiled file.
Tags for this Thread
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
|