C++builder程序转化为Delphi程序 ( 积分: 100 )

  • 主题发起人 主题发起人 317xgp
  • 开始时间 开始时间
3

317xgp

Unregistered / Unconfirmed
GUEST, unregistred user!
unsigned char *p1;
unsigned char ReturnArr[30] ;
int num,
p1=(unsigned char *)#
p1[0] = ReturnArr[1];
p1[1] = ReturnArr[2];
p1[2] = ReturnArr[3];
p1[3] = ReturnArr[4];
 
unsigned char *p1;
unsigned char ReturnArr[30] ;
int num,
p1=(unsigned char *)#
p1[0] = ReturnArr[1];
p1[1] = ReturnArr[2];
p1[2] = ReturnArr[3];
p1[3] = ReturnArr[4];
 
var
p1:pbyte;
returnarr:array[0..29] of byte
num:integer;
begin
p1:=@num;//这一句我没有把握是否是这样;
p1[0] := ReturnArr[1];
p1[1] := ReturnArr[2];
p1[2] := ReturnArr[3];
p1[3] := ReturnArr[4];

end;
 
var
p1:pchar;
returnarr:array[0..29] of char ;
num:integer;
begin
p1:=@num;
p1[0] := ReturnArr[1];
p1[1] := ReturnArr[2];
p1[2] := ReturnArr[3];
p1[3] := ReturnArr[4];
end;
 
后退
顶部