W
wenaideyu
Unregistered / Unconfirmed
GUEST, unregistred user!
c中定义如下:
MessCallBack(int command,char *ipaddr,char *buf,int ilen);
其中在下面的处理中有这样一个转换
pAlarmInfo = (ALARMINFO *)buf;
ALARMINFO 定义如下
typedef struct{
DWORD dwAlarmType;
DWORD dwAlarmInputNumber;
DWORD dwAlarmOutputNumber[ALARMOUT_NUM];
DWORD dwAlarmRelateChannel[CHANNEL_NUM];
DWORD dwChannel[CHANNEL_NUM];
DWORD dwDiskNumber[DISK_MAXNUM];
}ALARMINFO,*LPALARMINFO;
在delphi中调用 MessCallBack int command,char *ipaddr,char *buf,int ilen);
转换成procedure v_MessCallBack(command : integer;ipaddr,buf,ilen: pchar);
请问怎样把buf中的值转成相应类型?????
MessCallBack(int command,char *ipaddr,char *buf,int ilen);
其中在下面的处理中有这样一个转换
pAlarmInfo = (ALARMINFO *)buf;
ALARMINFO 定义如下
typedef struct{
DWORD dwAlarmType;
DWORD dwAlarmInputNumber;
DWORD dwAlarmOutputNumber[ALARMOUT_NUM];
DWORD dwAlarmRelateChannel[CHANNEL_NUM];
DWORD dwChannel[CHANNEL_NUM];
DWORD dwDiskNumber[DISK_MAXNUM];
}ALARMINFO,*LPALARMINFO;
在delphi中调用 MessCallBack int command,char *ipaddr,char *buf,int ilen);
转换成procedure v_MessCallBack(command : integer;ipaddr,buf,ilen: pchar);
请问怎样把buf中的值转成相应类型?????