麻烦请帮忙看看这段C怎么转成delphi
typedef struct{
Byte byMotionScope[18][22];
Byte byMotionSenstive;
Byte byEnableHandleMotion;
NET_DVR_HANDLEEXCEPTION strMotionHandleType;
Net_Dvr_SchedTime struAlarmTime[Max_Days][Max_TimeSegment];
Byte byResRecordChan[Max_Channum];
}Net_Dvr_Motion,*LpNet_Dvr_Motion;
NET_DVR_HANDLEEXCEPTION 和 Net_Dvr_SchedTime是前面定义的结构
其中的问题是Net_Dvr_SchedTime struAlarmTime[Max_Days][Max_TimeSegment]这个。
Max_Days和Max_TimeSegment该如何定义
[解决办法]
#define NAME_LEN 32
#define SERIALNO_LEN 48
#define MACADDR_LEN 6
#define MAX_ETHERNET 2
#define PATHNAME_LEN 128
#define PASSWD_LEN 16
#define MAX_CHANNUM 16
#define MAX_ALARMOUT 4
#define MAX_TIMESEGMENT 4 //***********
#define MAX_PRESET 128
#define MAX_DAYS 7 //*************
#define PHONENUMBER_LEN 32
#define MAX_DISKNUM 16
#define MAX_WINDOW 16
#define MAX_VGA 1
#define MAX_USERNUM 16
#define MAX_EXCEPTIONNUM 16
#define MAX_LINK 6
#define MAXCARD_NUM 40
#define MAX_ALARMIN 16
#define MAX_SERIALNUM 2
#define CARDNUM_LEN 20
#define MAX_VIDEOOUT 2
#define MAX_DISPLAY_REGION 16