c++到delphi的转换问题(50分)

  • 主题发起人 l_x_dong
  • 开始时间
L

l_x_dong

Unregistered / Unconfirmed
GUEST, unregistred user!
这两句c++的程序怎么转成delphi的,望高手赐教:
CString csTemp;
char szTag[4];
strncpy(csTemp.GetBuffer(5), szTag, 4);
csTemp.ReleaseBuffer(4);
 
var
Temp:string[5];
tag: string[4];
begin
tag:=copy(Temp,1,4);
...
 
不对
我通过dll解决了
 
lz估计想要的是这个
var
Temp:string;
tag: string[4];
begin
tag:=copy(Temp,1,4);
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
696
DelphiTeacher的专栏
D
顶部