16,742
社区成员
发帖
与我相关
我的任务
分享function Test(Str,RValue: PChar): Integer; stdcall;
begin
Str:= PChar('This is Test');
StrCopy(RValue,Str);
Result:= Length(RValue);
end;
//如果函数里用String类型则:
function Test(Str,RValue: PChar): Integer; stdcall;
var S:String;
begin
S:='This is Test'+Str;
StrPCopy(RValue,S);
Result:= Length(S);
end;