这样的话就出错了
error C2440: “=”: 无法从“void **”转换为“void (__cdecl *)(HWND,UINT,WPARAM,LPARAM)”
void (*TypeProcess[255])( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); BYTE TypeProIndex;
BYTE TEMP;
};void Control::RegisterCtrlPro( void *TypeProg)
{
//void *tem = TypeProg;
TypeProcess[TypeProIndex] = &TypeProg;
}
error C2440: “=”: 无法从“void **”转换为“void (__cdecl *)(HWND,UINT,WPARAM,LPARAM)”
void (*TypeProcess[255])( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); BYTE TypeProIndex;
BYTE TEMP;
};void Control::RegisterCtrlPro( void *TypeProg)
{
//void *tem = TypeProg;
TypeProcess[TypeProIndex] = &TypeProg;
}
解决方案 »
- 如何编写网页自动填表单程序?
- cstring转成ascii
- ADO访问数据库,说“对象名(为表名)无效”的疑问!
- 线程同步怎么样解决?
- 有关一条SQL语句,急~~~~~~~~~~~~~
- 连接字符串
- 大事不好,当地电信打算用硬件禁止ADSL多机共亨上网,咱们老百姓以后怎么办?
- 请问怎样响应CEdit控件内容改变事件?
- 如何使属性页和属性单占用资源减少?
- 请问:ON_NOTIFY(TBN_DROPDOWN,AFX_IDW_TOOLBAR,OnDropDown),为何OnDropDown函数不执行,我已经将工具条的第一项设为下拉,并成功,但点击后无效,不执行OnDropDown函数???
- vc如何设置某个文件夹处于选中状态
- 谁知道从哪里下载繁体中文版的XP补丁KB983246?
哦,应该是
TypeProcess[TypeProIndex] = (MyWndProc)TypeProg; //没有 &最好这样
void Control::RegisterCtrlPro( MyWndProc TypeProg)
typedef 类型 (调用约定 *XXX)(参数列表);