var pt:pchar; .. pt:='hello,everybody,can you help me?';
回复人: jinjazz(近身剪(N-P攻略)) 我都已经说了unsigned char* 对应Delphi中的PByte,当我这句话不存在是吧。 我所知道的方法就是类型转换。 var pc:PChar; pt:PByte;........... pc:='hello,everybody,can you help me?'; pt:=PByte(pc);因为我觉得C中的这句话也是进行了类型转换, unsigned char* pt; pt="hello,everybody,can you help me?";本来么,"hello,everybody,can you help me?"应该是个Char型数组,怎么能直接赋给unsigned char呢。对C比较熟悉的可以讲讲。 现在发现自己基础打得一点都不扎实,一涉及到最基本的东西都拿不准。
..
pt:='hello,everybody,can you help me?';
我所知道的方法就是类型转换。
var
pc:PChar;
pt:PByte;........... pc:='hello,everybody,can you help me?';
pt:=PByte(pc);因为我觉得C中的这句话也是进行了类型转换,
unsigned char* pt;
pt="hello,everybody,can you help me?";本来么,"hello,everybody,can you help me?"应该是个Char型数组,怎么能直接赋给unsigned char呢。对C比较熟悉的可以讲讲。
现在发现自己基础打得一点都不扎实,一涉及到最基本的东西都拿不准。