GetMapFileAddress and overloads
Posted: Mon Dec 17, 2018 9:48 am
Hello,
I'm using the following code to retrieve the address of a procedure:
This works fine for methods that do not have overloads. However, as is the case with the above method, there are tow versions of the method:
Right now, GetMapFileAddress returns the first overload address, but I feel it is just "pure luck" and if I'm interested in the second one, I'm lost on how to do that.
I tried looking at the code inside madMapFile, but nothing obvious jumped at me. Would you have any suggestion?
Regards
Olivier
I'm using the following code to retrieve the address of a procedure:
Code: Select all
FScrollIntoView := GetMapFileAddress(GetModuleName(0), 'VirtualTrees', 'TBaseVirtualTree.ScrollIntoView');
Code: Select all
function ScrollIntoView(Node: PVirtualNode; Center: Boolean; Horizontally: Boolean = False): Boolean; overload;
function ScrollIntoView(Column: TColumnIndex; Center: Boolean; Node: PVirtualNode = nil): Boolean; overload;
I tried looking at the code inside madMapFile, but nothing obvious jumped at me. Would you have any suggestion?
Regards
Olivier