不再返回的函数如下,可以成功编译执行,但带返回参数的函数却编译通不过,想请教下带参数的函数指针如何实现,指向绝对地址。
一,void型,OK
void (*WriteQuickPort)(void);
WriteQuickPort = (void(*)())0x0968;
二,带参数返回型,不成功.
uint16 (*GetCRC)(uint8 *Array,uint8 DataCount ) ;
GetCRC = (uint16*)0x08c4;
GetCRC = (uint16(*)())0x08c4;
这两种指向都不行,应该怎么做呢?
Error : C3028E: '=': implicit cast of pointer to non-equal pointer CassEngine.c line 68
C:\Documents and Settings\jackey\桌面\踪迹\9-6\lpc2212\CassEngine.c: 32 warnings, 1 error, 0 serious errors
|