Subject | Re: [IBO] How install IBclient in first run of my application? |
---|---|
Author | Florian Hector |
Post date | 2003-09-07T07:26:51Z |
> I think to test gds32.dll before application.run in .dpr file.procedure TForm1.ButtonDBTestClick(Sender: TObject);
>
> Have any elegant solution?
var
dhand:THandle;
procPointer:Pointer;
messString:string;
begin
procPointer := nil;
dhand := LoadLibrary('gds32.dll');
if dhand > 0 then
procPointer := GetProcAddress(dhand,'isc_sql_interprete');
if procPointer <> nil then
messString := 'all went fine, Interbase Client found. Handle:' +
IntToStr(dhand)
else
messString := 'ZONK, Interbase Client NOT found.';
ShowMessage(messString);
if dhand > 0 then
FreeLibrary(dhand);
end;
Florian