Subject | Re: [IBO] There is a way to specify client library dll ? |
---|---|
Author | hamacker |
Post date | 2013-06-26T16:19:58Z |
In my program I need to retain my current connection (remote) and create a
fresh new database using 'fbembed.dll' because I dont need user/password
to attach this one, after that, transfer tables and procedures in remote
database to new database (local using 'fbembed.dll').
Your sample is great, but this method are global (change all units), or
local (only current unit) ?
Because if local, it´s perfect, dont change anything in other connections.
2013/6/26 Dmitry A. Beloshistov <torin@...>
fresh new database using 'fbembed.dll' because I dont need user/password
to attach this one, after that, transfer tables and procedures in remote
database to new database (local using 'fbembed.dll').
Your sample is great, but this method are global (change all units), or
local (only current unit) ?
Because if local, it´s perfect, dont change anything in other connections.
2013/6/26 Dmitry A. Beloshistov <torin@...>
> Hi![Non-text portions of this message have been removed]
>
> From IB_Session.pas:
>
> - - - start dpr project file - - -
> program
> MyProgram;
>
> uses
> Forms,
> IB_Session, // Must use IB_Session
> [...]
>
> function GetFBClientLibName: string;
> begin
> Result := 'myfbclient.dll';
> end;
>
> [...]
> begin
> // Tell IB_Session where to get the client lib name
> IB_GetClientLibNameFunc := GetFBClientLibName;
> // then continue with the normal stuff
> Application.Initialize;
> [...]
> end.
> - - - end dpr project file - - -
>
>