Link to home
Start Free TrialLog in
Avatar of BdLm
BdLmFlag for Germany

asked on

write C header files for Delphi DLLs

Hi,

I need a doku how the C header file for my delphi dll should look like , any tutorial / example ?
ASKER CERTIFIED SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BdLm

ASKER

HI used strings delphi -> delphi .dll with sharemem, works fine.  :-))

 What has the C programmer to do ? MYFunction (a Str : String) : String    ->  MyFunction (a Pchar) : PChar  in C++ ??
If you can use a Delphi DLL in which you use Delphi strings from C at all, it will be very difficult.

Hence: look at rule #1 I posted above! :)
Avatar of BdLm

ASKER

is it for the C programmer more easy If i use in the function declaration only PChar ?
yes definitly, that's the way it should be done (that's why all windows api calls work with pchars)