STRICT_DLL_LOADING
Posted: 25.09.2005, 18:14
Hello,
Can somebody help on this?
All of the ZPlain*.pas file use this (you can see the codes), why?
MYSQL_STRICT_DLL_LOADING <> STRICT_DLL_LOADING !!!!!
How can I use this directives? I can remove some line, but is not the solution.
Example from ZPlainMySql320.pas:
Perger Attila
Can somebody help on this?
All of the ZPlain*.pas file use this (you can see the codes), why?
MYSQL_STRICT_DLL_LOADING <> STRICT_DLL_LOADING !!!!!
How can I use this directives? I can remove some line, but is not the solution.
Example from ZPlainMySql320.pas:
Code: Select all
const
WINDOWS1_DLL_LOCATION = 'libmysql320.dll';
{$IFNDEF STRICT_DLL_LOADING}
WINDOWS2_DLL_LOCATION = 'libmysql.dll';
{$ENDIF}
LINUX_DLL_LOCATION = 'libmysqlclient.so';
Code: Select all
initialization
{$IFNDEF UNIX}
LibraryLoader := TZMySQLNativeLibraryLoader.Create(
[WINDOWS1_DLL_LOCATION
{$IFNDEF MYSQL_STRICT_DLL_LOADING}
, WINDOWS2_DLL_LOCATION
{$ENDIF}
]);
{$ELSE}
LibraryLoader := TZMySQLNativeLibraryLoader.Create(
[LINUX_DLL_LOCATION]);
{$ENDIF}