Re: How to patch overload function/method?



Chau Chee Yang a écrit :
I wish to use CodeRedirect or FastCode patcher to patch FmtBcd.pas overloaded methods/functions? How can I do that?

eg. BcdMultiply function in FmtBcd.pas

Hello,

You can filter the function you want to patch using a type:

type
TMyFunc = function (A, B: Integer) of object;
var
AMyFunc: TMyFunc;
begin
AMyFunc := @AMyObject.SomeOverLoadedMethod;
// TMyMethod is a closure, the code field has to be isolated
"PatchMethod"(TMethod(AMyFunc).Code);
end;

Regards,

Florent
.



Relevant Pages

  • Re: XPe SP2 with Domain Participation losing after 30 days
    ... Debbie, ... I knew about the new Filter but I didn't know it was officially released. ... I didn't know the EWF Registry filter patch was officially released. ... I do know that EWF version in SP2 does not have the functionality of the Registry filter. ...
    (microsoft.public.windowsxp.embedded)
  • Re: [PATCH] allow root to modify raw scsi command permissions list
    ... > My patch leaves the defaults as what are currently in the kernel. ... Yes but what I wanted to say the filter currently in the kernel is not ... purpose of giving read/write permissions in this case. ... The starting point must be safe and it can be relaxed. ...
    (Linux-Kernel)
  • Re: floating check boxes on web pages
    ... Might re-read my post, the patch IS sp1. ... for Publisher help: ... The form control check boxes looked fine ... > the whole filter web ...
    (microsoft.public.publisher.webdesign)
  • Re: [PATCH] allow root to modify raw scsi command permissions list
    ... In the current scsi_ioctl filter it applies to everything. ... My patch leaves the defaults as what are currently in the kernel. ... commands should and shouldn't be allowed. ... > only root, allow filtered, allow all? ...
    (Linux-Kernel)
  • Re: Exchange 2003 SP2
    ... Da wir diese Filter sowieso nicht verwenden werde ich den ... >> Patch wohl nicht brauchen. ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.exchange)