Einzelnen Beitrag anzeigen

hathor
(Gast)

n/a Beiträge
 
#10

AW: SendMessage überträgt String nicht zuverlässig

  Alt 13. Jun 2014, 17:10
Hier ist es gut beschrieben:
http://delphi.about.com/od/windowssh...m_copydata.htm

Programm-Beispiel:
http://delphi.about.com/library/week...m_copydata.zip

Erforderliche Änderungen bei XE2:

Delphi-Quellcode:
procedure TReceiverMainForm.HandleCopyDataString(
  copyDataStruct: PCopyDataStruct);
var
  s : ANSIstring; //th
begin
  s := PANSIChar(copyDataStruct.lpData); //th
...
...
procedure TSenderMainForm.SendString();
var
  stringToSend : ANSIstring; //th
...

Geändert von hathor (13. Jun 2014 um 17:41 Uhr)
  Mit Zitat antworten Zitat