Re: How to patch overload function/method?



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
.



Relevant Pages

  • Re: log colorizer?
    ... my normal method is to run a script on each machine I build for. ... This script retrieves all the source packages from a central location, ... or hasn't already been built. ...
    (alt.os.linux.suse)
  • Re: Building from source with dependency on libjpeg.la on FC5
    ... Rex Dieter wrote: ... Packages which need libjpeg.la cannot be built. ... For example JMagick ...
    (Fedora)
  • Re: openldap
    ... I have built a few GNU Open Source packages in OSS. ... The INSTALL file typically has a lot of documentation. ... These files can be found in any of the ITUG downloads for OSS. ...
    (comp.sys.tandem)
  • Re: Getting KDE 3.1
    ... > I am running the stable or Woody version of Debian. ... The Debian packages on ftp.kde.org are built ... kmail has an option to automatically add signatures. ...
    (Debian-User)
  • [kde] cannot select arts
    ... and one system i configured using pre-built packages from the FreeBSD ... the system i built myself from ports, all multimedia apps are working properly ... anything that would need to select arts as the output plugin, ...
    (KDE)