Thema: Delphi How to - string in DLL

Einzelnen Beitrag anzeigen

WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

How to - string in DLL

  Alt 16. Jun 2011, 18:54
Delphi-Version: 2010
This is the bigest problem I currently have: how to use strings in DLL.

I know have to use PChar in exports. How about internal code that operates on Delphi's strings? I want to share this DLL with any language, so I can't use external memory manager (as I did with DLLs that can be used by my software only). For example function returns string or parameter is string or variable or constant is string - what to do whit this?

With numbers there is no problem. Please help me with strings
  Mit Zitat antworten Zitat