Board index » delphi » Problems using Delphi to call C-functions.
Hakan Hellberg
![]() Delphi Developer |
Sun, 21 Jun 1998 03:00:00 GMT
Problems using Delphi to call C-functions.
Hi,
I've got a problem when trying to call a function implemented in C Example C-function compiled with VisualC++ 4.0 like cl /Gd -c add.c File: add.c long add( long x, long y) Quote} Then i create a Import unit for this function looking something like this. unit Unit1; interface implementation end. Now if i compile this file i'll get the following error message: Bad file format: 'add.obj' What am i doing wrong ? isn't MS VisualC++ object files compatible with Delphi Please reply by email. Thanks in advance. --------------------------------------------------------------------------- WM-data F?rsvarsdata AB Stationsgatan 3, Box 9112, 96119 Boden, Sweden |