Autor Beitrag
hazelnoot
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Di 08.08.06 15:39 
Hi!

ich hab ein kleines problem und zwar ich schreibe gerade eine shared memory klasse:

und ich kopiere mittels:
System.Move(text, memPointer^, Length(text));
in den speicherbereich
text ist vom typ string. aber dann kommen komische zeichen beim epfaenger an. waenn ich text vom typ WideString oder AnsiString mache dann kommen ebenfalls komische zeichen an! waenn ich die methode jedoch so aufrufe:
System.Move('hallo', memPointer^, Length('hallo'));
dann funktionierts tadellos!

was kann es da haben? hat wer ne ahnung?

danke mfg hazelnoot!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 08.08.06 15:41 
Ich denke mal
System.Move(text[1], memPointer^, Length(text)); sollte es tun

_________________
We are, we were and will not be.
hazelnoot Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Mi 09.08.06 08:01 
danke das funkt!