labview共享库导入,头文件中有位段不能被识别.怎么解决,急.
时间:10-02
整理:3721RD
点击:
labview共享库导入,头文件中有位段不能被识别.怎么解决,急.
如
typedef struct bt1553_intmode
{
#ifdef NON_INTEL_BIT_FIELDS
BT_U16BIT unused:10; // unused (MSB)
BT_U16BIT bmtrig:1; // bm trigger has occurred 0x0020
BT_U16BIT bc:1; // bc interrupt 0x0010
BT_U16BIT bm:1; // bm interrupt 0x0008
BT_U16BIT rt:1; // rt interrupt 0x0004
BT_U16BIT timer:1; // timer overflow or load 0x0002
BT_U16BIT iack:1; // interrupt acknowledge bit (LSB)
}
在导入时就不能被识别的,求教.
如
typedef struct bt1553_intmode
{
#ifdef NON_INTEL_BIT_FIELDS
BT_U16BIT unused:10; // unused (MSB)
BT_U16BIT bmtrig:1; // bm trigger has occurred 0x0020
BT_U16BIT bc:1; // bc interrupt 0x0010
BT_U16BIT bm:1; // bm interrupt 0x0008
BT_U16BIT rt:1; // rt interrupt 0x0004
BT_U16BIT timer:1; // timer overflow or load 0x0002
BT_U16BIT iack:1; // interrupt acknowledge bit (LSB)
}
在导入时就不能被识别的,求教.
在预处理中加入
ULONG = unsigned long; VOID = void; LONG = long; UCHAR = unsigned char; PUCHAR = unsigned char*; PULONG = unsigned long*; WINAPI; BOOL = bool; USHORT = unsigned short; PUSHORT = unsigned short*;