Subject | IB_Objects in a dll |
---|---|
Author | txwhytboy |
Post date | 2002-07-05T23:26:56Z |
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
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