Subject | RE: [IBO] DLL/BPL and app with lots of modules |
---|---|
Author | Riho-Rene Ellermaa |
Post date | 2002-01-30T08:47:10Z |
You place TIB_Connection into your BPL datamodule (or whereever). And
in BPL call
DModule->IB_Conn->dbHandleShared=dbHandle.
Riho-Rene Ellermaa
senior programmer
Hansabank
in BPL call
DModule->IB_Conn->dbHandleShared=dbHandle.
Riho-Rene Ellermaa
senior programmer
Hansabank
> -----Original Message-----
> From: Steve Fields [mailto:fields24@...]
> Sent: Wednesday, January 30, 2002 4:13 AM
> To: IBObjects@yahoogroups.com
> Subject: Re: [IBO] DLL/BPL and app with lots of modules
>
>
> I am using Delphi 5. Would that be along the line of
> procedure Form1.DoProc(Hand : TIB_Handle);
> How can I get by without placing a TIB_Connction in
> the actual DLL/form. (When I do that there are all kind
> of password/protocall problems.)
>
> Steve Fields
>
> Riho-Rene Ellermaa wrote:
>
> >I'm using dynamically loaded BPL's in my project (I used
> DLL's with BCB4
> >and IBO3.6, but got crashes when closing DLL's, so I decided
> to rewrite
> >it.)
> >I use handle sharing.
> >In main module I open connection to database. When I call my
> OpenForm()
> >function in BPL, I pass IBConn->dbHandle as parameter. In BPL I set
> >DModule->IB_Conn->dbHandleShared=dbHandle.
> >
> >Riho-Rene Ellermaa
> >senior programmer
> >Hansabank
> >
> >
>