这句话谁能解释下?
typedef D_VOID (*EIT_CALLBACK)(D_BOOL);
返回值D_VOID 形参D_BOOL
程序代码:
static D_VOID TestFtnCb(D_BOOL); typedef D_VOID (*EIT_CALLBACK)(D_BOOL); typedef struct _TEST{ EIT_CALLBACK FtnCb; }TEST,*PTEST; TEST Test1; Test1.FtnCb = TestFtnCb;//赋值 Test1.FtnCb(Context);//调用
[ 本帖最后由 njkido 于 2011-3-24 11:54 编辑 ]