结构体和数据类型如何定义才相等?
芯艺 2007-08-28 04:54:40 typedef struct DSIPALY_WND
{
struct DISPLAY_WND * pParentWnd;
uint8_t Buf[2];
void (*Display) (struct DISPLAY_WND *pWnd,uint8_t key);
void (*Flash) (struct DISPLAY_WND *pWnd,uint8_t flag);
}WND,*PWND;
就这样一个定义,在函数中用时,一个PWND类型付给pParentWnd时总编译器总发出警告,要求数据类型转换,郁闷.