Arşiv

Posts Tagged ‘initialization error could not locate’

delphi set oci.dll(SetOCIDLL)

Mart 27, 2010 2 yorum

OCI.dll adresini programdan set edilebilmesi için “OracleCI” uses kısmına eklenmelidir.Set edilecek olan adres bilgisi yazıldıktan sonra OCI.dll istediğimiz adresten çalıştırılmış olacaktır.

uses OracleCI;

procedure SetOCIDLL();
begin
  if FileExists('c:\oracledata\bin\oci.dll') then
    OCIDLL:='c:\oracledata\bin\oci.dll';
end;

initialization
  SetOCIDLL();

end.