BdLm
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 ?
I need a doku how the C header file for my delphi dll should look like , any tutorial / example ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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! :)
Hence: look at rule #1 I posted above! :)
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)
ASKER
What has the C programmer to do ? MYFunction (a Str : String) : String -> MyFunction (a Pchar) : PChar in C++ ??