Subject Re: [IBO] IB_Objects in a dll
Author Jason Wharton
Don't know. What you have looks OK to me.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "txwhytboy" <rwebb@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, July 05, 2002 4:26 PM
Subject: [IBO] IB_Objects in a dll


> Alright, I've been working on this for a while... and I found out
> that you can only have the TIB_Session with a NIL parent. however,
> the DLL has no TComponent object to make the parent. Anyway.. now it
> tells me that the "Feature is not supported" (SQL Error -901), when
> it tries to prepare the Query in the folloing code...
>
> IBSession := TIB_Session.Create(NIL);
> try
> IBConnection := TIB_Connection.Create(IBSession);
> try
> with IBConnection do
> begin
> Server := 'Server';
> Path := 'Path';
> UserName := 'UserName';
> Password := 'Password';
> Protocol := cpTCP_IP;
> end;
> IBConnection.Connect;
> IBQ := TIB_Query.Create(IBSession);
> try
> with IBQ do
> begin
> IB_Connection := IBConnection;
> SQL.TEXT := 'Select * from Table1';
> Prepare;
>
> ETC......
>
> Anyone have any ideas on why thats happening?
>
> - Roger