Hi guys,
On Delphi 2009, on a new VCL project:
procedure TForm1.FormCreate(Sender: TObject);
var
Handle: THandle;
begin
Handle := loadlibrary('oci.dll');
if Handle <> 0 then
begin
try
ShowMessage('Success');
finally
FreeLibrary(Handle);
end;
end
else
ShowMessage('Fail');
end;
If i run the Exe from the IDE, it fails, if i run the EXE from the directory, just on double clicking on it it's a success !!??
Please tell me what I'm missing.
Thanks, Fred
EDIT: Launching the EXE via the IDE works with Delphi 7 !! WTf is the problem with D2009 ??