: I have problem accessing DLL tthat was written in C/C++. Can someone please
: tell me how to go about doing it. Thanks
Here is one example.
Prototype in C++:
extern "C" BOOL FAR Pascal _export Fxx();
Prototype in Delphi:
function Fxx: WordBool; far; external 'DLLName';
'extern "C"' is needed if using C++. Also it can be difficult to
match types of parameters. If parameters are floating point, only the 80
bit type has same format in Delphi and Borland C++. Integers must be
matched 16 or 32 bits (short int in C++=int in Delphi 1, int in
C++=longint in Delphi), Boolean as shown above(Windows C BOOL=WordBool in
Delphi), and 'char *str'='var str:Pchar' etc.