This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

28069采用motorware里面的例程,对程序有些不理解,求解答。



typedef struct _CTRL_Obj_ *CTRL_Handle;  这句话的意思是定义*CTRL_Handle是结构体CTRL_Obj的指针变量,当有函数要用到这个结构体里面的变量时,为什么还要写这句话CTRL_Obj *obj = (CTRL_Obj *)handle; 又给结构体CTRL_Obj定义了一个指针变量obj,还把handle强制转换成CTRL_Obj类型,这样做的用意是什么?有什么好处?