2 runnerwise1 RUNNERWISE1 于 2013.10.09 19:56 提问

请问VC里面的类型在delphi里面如何表达定义?

在C里面:
typedef BOOL kint1u;

typedef UCHAR kint8u;
typedef USHORT kint16u;

typedef UINT kint32u;

typedef struct
{
kint32u id;

kint8u dynip[4];

kint32u login_time;

kint32u last_time;

}kdev_info;

请问在Delphi里如何定义?(下面是我的表达方式,但是运行时提示内存写错误!)
type
Tkdev_info=^kdev_info;
kdev_info=record
id:LongWord;

dynip:array[0..4] of UCHAR;

login_time:LongWord;

last_time:LongWord;

end;

Csdn user default icon
上传中...
上传图片
插入图片