System: Windows XP
Compiler: Turbo Delphi
Api: Plane windows...
Hi there,
So Im trying to make pointer to a string like this:
ValuePointer is a pointer to a valid string, s is the data I need to copy into my value pointer. Ths piece of code works, but not all the time strangely.Code:// first set the length of teh string SetLength(String(ValuePointer), Length(s)+1); // Now copy new data into my string CopyMemory(ValuePointer, @s[1], Length(s));
How come?
Bookmarks