Subject | Re: [IBO] IB_Objects in a dll |
---|---|
Author | Dmitry Beloshistov |
Post date | 2002-07-06T09:04:58Z |
Hello, txwhytboy!
You wrote to <IBObjects@yahoogroups.com> on Fri, 05 Jul 2002 23:26:56 -0000:
t> Alright, I've been working on this for a while... and I found out
t> that you can only have the TIB_Session with a NIL parent. however,
t> the DLL has no TComponent object to make the parent. Anyway.. now it
t> tells me that the "Feature is not supported" (SQL Error -901), when
t> it tries to prepare the Query in the folloing code...
t> IBSession := TIB_Session.Create(NIL);
Try this code:
Uses ........,Forms;
Procedure InitiateLibrary(AppHandle:THandle;.......); stdcall;
begin
........
Application.Handle:=AppHandle;
........
end;
and:
try
IBSession:=TIB_Session.Create(Application);
... etc ...
WBR, Dmitry Beloshistov AKA [-=BDS=-]
e-mail: torin@...
You wrote to <IBObjects@yahoogroups.com> on Fri, 05 Jul 2002 23:26:56 -0000:
t> Alright, I've been working on this for a while... and I found out
t> that you can only have the TIB_Session with a NIL parent. however,
t> the DLL has no TComponent object to make the parent. Anyway.. now it
t> tells me that the "Feature is not supported" (SQL Error -901), when
t> it tries to prepare the Query in the folloing code...
t> IBSession := TIB_Session.Create(NIL);
Try this code:
Uses ........,Forms;
Procedure InitiateLibrary(AppHandle:THandle;.......); stdcall;
begin
........
Application.Handle:=AppHandle;
........
end;
and:
try
IBSession:=TIB_Session.Create(Application);
... etc ...
WBR, Dmitry Beloshistov AKA [-=BDS=-]
e-mail: torin@...