Thema: Delphi How to - string in DLL

Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#17

AW: How to - string in DLL

  Alt 20. Jun 2011, 10:36
I know that it is a Delphi function. But I don't know its result, if you use Unicode. I assume it returns the number of characters. So if you allocate the memory you have to double the result of Length.

And there is still the error with the calling convention in your code. Before you try something else correct it. The calling convention for the function in the DLL is stdcall, but in your program it is external!
Michael
Ein Teil meines Codes würde euch verunsichern.

Geändert von Luckie (20. Jun 2011 um 10:39 Uhr)
  Mit Zitat antworten Zitat