| GNU gettext for Delphi, C++ Builder and Kylix 1.2 beta | ||
|---|---|---|
| <<< Previous | API reference | Next >>> |
This procedure lets you control, whether resourcestring retrieval should be translated automatically or not. The default is to have this enabled, but there may be situations, where you want to disable it.
Also, this procedure lets you hook deeper into the runtime library, which is needed when creating packages. Please note, that package support requires you to keep track of designtime and runtime. You may only call this function with the second parameter set to True during runtime. Setting it to true during design time may make your package conflict with other packages, that also hook into the runtime libraries.
The problem with packages are, that calling a function from the runtime library doesn't call the functions directly - instead it calls into an address, where you will find a machine code jump to the real function, which can be shared between packages. When you load and unload packages inside the Delphi ITE, the packages are sharing runtime libraries. If one package would hook into the runtime library, and another package does the same, and the packages are unloaded FIFO style, the "unhooking" of the runtime library done by last package that is unloaded, will make your system unstable. It is very important to understand this when creating packages, because your system might look as if it just works, but it might not work with your customer unless you do it right.
| <<< Previous | Home | Next >>> |
| var ExecutableFilename:string; | Up | const DebugLogFilename='c:\dxgettext-log.txt'; |