Re:Linking a Borland C OBJ-file with Delphi?
Does anyone have experience with linking an .OBJ file compiled
in Borland C++ 4.5 into a Delphi 1.0 program? Everything works fine
until the function returns from C to Delphi where it generates a GPF.
C-part: (objtest.c -> objtest.obj)
void pascal Hello()
{
}
Delphi-part:
procedure Hello; external;
{$L objtest.obj}
procedure TForm1.Button1Click(Sender: TObject);
begin
Hello;
end;
Error message:
Project TEST1.EXE raised exception class
EGPFault with message 'General Protection fault in
module TEST1.EXE at 0000:0171'. Process stopped.
--
Anders Olsson
CadSupport Stockholm, Sv?rdsl?ngsv?gen 32
120 60 ?rsta, Sweden
Tel: +46-8184800, Fax: +46-8184805