STRICT_DLL_LOADING

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
User avatar
aperger
Expert Boarder
Expert Boarder
Posts: 129
Joined: 24.08.2005, 08:24
Location: Veszprém
Contact:

STRICT_DLL_LOADING

Post by aperger »

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:

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}
Perger Attila
Tom Dog
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 01.11.2005, 22:28
Contact:

Post by Tom Dog »

In Zeos.inc change {$DEFINE MYSQL_STRICT_DLL_LOADING}
to { $DEFINE MYSQL_STRICT_DLL_LOADING} to undefine it
Delphi 2005
zeosdbo-6.5.1-alpha_cvs_13-10-2005
mysql-4.1.15
Terence
Zeos Dev Team
Zeos Dev Team
Posts: 141
Joined: 22.09.2005, 14:11
Location: Stuttgart
Contact:

Post by Terence »

I don't see any main difference between
{$DEFINE MYSQL_STRICT_DLL_LOADING}
and
{ $DEFINE MYSQL_STRICT_DLL_LOADING}

except exactly one blank, which does not have any semantic!
fabian
Tom Dog
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 01.11.2005, 22:28
Contact:

Post by Tom Dog »

It does to the Delphi compiler

It treats the first one as a compiler directive

the second all it sees is a comment
Delphi 2005
zeosdbo-6.5.1-alpha_cvs_13-10-2005
mysql-4.1.15
matsgefvert
Junior Boarder
Junior Boarder
Posts: 38
Joined: 22.11.2005, 09:11
Location: Skövde, Sweden
Contact:

Post by matsgefvert »

I would prefer to write

{//$DEFINE MYSQL_STRICT_DLL_LOADING}

...if for no other reason than clarity.
Coffee clarifies the mind, improves morale, lifts the spirit and motivates and inspires to focused, productive work.
Post Reply