Thank you Michael. We will have a look.
We have already done something for C interface passing strings.
We have created a common way to allocate string buffers between thinCore.dll and modules developed using C passing a pointer to a buffer where the first bytes are controls flags to understand the method of buffer allocation, the owner of the buffer (Module or Core) and who is responible for deallocation (again Core or Module).
I've already checked Turbo Delphi help file on strings. There are some different types. What I would like to have is something very close to OLE32 strings so able to store NULL bytes too. I suppose PChar is something very close to ANSI strings where a NULL byte indicate the end of the string and there is no clue of what is the real size of the allocated buffer.
In any case, PChar will be the "escape" solution but I would like to check all the other possibilities before using it.
Thanks a lot
Eros
Bookmarks