Z
zyf23
Unregistered / Unconfirmed
GUEST, unregistred user!
如何实现一下类型的相互转换?
pchar<->string
pchar<->array of char
array of char<->string
函数原型如下
function PCharToArrayChar(A: pchar
var b: array of char): array of char;
function ArrayCharToPChar(var b: array of char): Pchar;
function PCharTostr(A: pchar): string;
function StrToPchar(A: string): pchar;
function StrToArrayChar(A:string): pointer;
function ArrayCharToStr(A:array of char): string;
pchar<->string
pchar<->array of char
array of char<->string
函数原型如下
function PCharToArrayChar(A: pchar
var b: array of char): array of char;
function ArrayCharToPChar(var b: array of char): Pchar;
function PCharTostr(A: pchar): string;
function StrToPchar(A: string): pchar;
function StrToArrayChar(A:string): pointer;
function ArrayCharToStr(A:array of char): string;