Subject Re: [IBO] DLL/BPL and app with lots of modules
Author Steve Fields
Ok, I'll try that this eve....

Thanks
Steve Fields

Daniel Rail wrote:
>
> At 29/01/2002 10:13 PM, you wrote:
> > 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.)
> >
>
> If you use what Riho-Rene Ellermaa mentionned, you will not need
> password/protocol. You are passing the TIB_Connection.dbHandle of the
> calling program to the DLL and assign it to the DLL's
> TIB_Conneciton.dbHandleShared. Here's how it would look like:
>
> procedure DLLInterface(Handle: TIB_Handle);
> begin
> DLL_IB_Connection.dbHandleShared := Handle;
> ...
> do what you need to do
> ...
> end;
>
> You don't have to worry about the server name, pathname, password, username
> and protocol. It uses the connection that was already established.
>
> Thanks Riho-Rene Ellermaa for the information. I just tried it and it
> works fine. The documentation in the help refers to the BDE, and that's
> probably why I turned away from it. Now, I'll use it.
>
> Have a nice day.
>
> Daniel Rail
> Senior System Engineer
> ACCRA Group Inc. (www.accra.ca)
> ACCRA Med Software Inc. (www.accramed.ca)
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/