Subject Re: [IBO] DLL/BPL and app with lots of modules
Author Daniel Rail
If you are looking at only having one connection, then DLLs are not the
answer. Look at the BPLs or maybe a plugins system(you can find a list on
Torry's Page or Delphi Super Page).

Daniel Rail

At 28/01/2002 10:08 PM, you wrote:
>Tried it. Nope. (Also need to specify a password, etc. )
>Might have worked in a older version of IBO but doesn't now.
>Plus this will add up to a lot on connections if I were to
>call this numerous times in a app.
>Most every time I tried this I got a AV and then at one time
>Delphi even crashed out on me.
>Still trying to figure this one out....
>
>Steve Fields
>
>Daniel Rail wrote:
>
> >Pass the connection parameters that are not constant for each installation
> >to the DLL(pathname, server, protocol, username, password). i.e.
> >ProcName(Server, Pathname: PChar; Protocol: TIB_Protocol);
> >
> >At the present time, I don't even reference the TIB_Connection of the main
> >executable.
> >
> >Example:
> >ProcName(Server, Pathname: PChar; Protocol: TIB_Protocol);
> >begin
> > DLLConn.Server := String(Server);
> > DLLConn.Pathname := String(Pathname);
> > DLLConn.Protocol := Protocol;
> > DLLConn.Connect;
> > try
> > {
> > ...
> > do whatever you need to do
> > ...
> > }
> > finally
> > DLLConn.Disconnect;
> > end;
> >end;
> >