Re: How to patch overload function/method?
- From: Chau Chee Yang <ccy@xxxxxxxxxx>
- Date: Mon, 31 Dec 2007 17:37:58 +0800
And if you do not want to patch a method but a procedure/function you
can use this very similar technique.
type
TStrToInt64Func = function(const S: string): Int64;
const
AMyFunc: TStrToInt64Func = StrToInt;
begin
"PatchMethod"(@AMyFunc);
end;
Thanks. It works only when I do not built my application with runtime packages. If the function/procedure are declared in a package, my PatchMethod will fail.
May I know what are the best PatchMethod available that can be used with packaged app and non-packaged app?
--
Best regards,
Chau Chee Yang
E Stream Software Sdn Bhd
URL: www.sql.com.my
SQL Financial Accounting
.
- Follow-Ups:
- Re: How to patch overload function/method?
- From: Andreas Hausladen
- Re: How to patch overload function/method?
- References:
- How to patch overload function/method?
- From: Chau Chee Yang
- Re: How to patch overload function/method?
- From: Florent Ouchet
- Re: How to patch overload function/method?
- From: Andreas Hausladen
- How to patch overload function/method?
- Prev by Date: Re: How to patch overload function/method?
- Next by Date: FastMM Install
- Previous by thread: Re: How to patch overload function/method?
- Next by thread: Re: How to patch overload function/method?
- Index(es):
Relevant Pages
|