有关回调函数,在线等待。
有关回调函数,在线等待。
楼主qinfei(飞翔在蓝色的天空中)2004-02-28 15:27:39 在 VC/MFC / 基础类 提问 为什么我这样写不对?mpgCallbackFunction((void *)&(MyRealTimeCallback));
编译是的错误:
error C2664: "mpgCallbackFunction" : cannot convert parameter 1 from "void *" to "void (__cdecl *)(int,int,int)"
该怎样来写啊?
这是我自己写的函数
void static MyRealTimeCallback(int CardNum,int ChanNum,int Message);
关于函数的介绍
PS
mpgCallbackFunction
The mpgCallbackFunction function will request that callback
messages be sent to a function of the users choice.
VCCCALL mpgCallbackFunction( void *( pcbfptr)
(int CardNum,
int ChanNum,
int Message)
);
Parameters
* pcbfptr
A pointer to the address of the function to receive the
callback messages.
CardNum
0 based index of the card in the system.
ChanNum
0 based index of the channel on the card. 问题点数:50、回复次数:4Top
-
相关文章
2秒记住本站域名
玩过泡泡龙吗?Readygo?Go! 再加上.Com.Cn的后缀,那就是大名小顶的readygo.com.cn
