
| Subject: | PPChar help wanted [Edit] |
| Posted by: | Jan Doggen |
| Date: | Fri, 30 Jul 2010 |
I'm converting C to Delphi and this is a function I have trouble with
procedure GetSomethingBackInNewHeader(ppNewHeader: PPChar; var rNewHeaderSize: DWORD)
Given some strings inside this proc, how would a put them in ppNewHeader, then reference them outsize of the proc as strings again?
As you may understand I'm not a pChar hero and use Strings as much as possible.
(Ignore ANSI/wide for the time being)
(Changing the procedure params is not an option)
I understand a PPChar can be interpreted as an array of PChar (given the way C usually just increments pointers), but can't get it work yet.
Thanks
Jan
Edited by: Jan Doggen on Jul 30, 2010 3:35 AM