error C2664: 'cvSetMouseCallback' : cannot convert parameter 2 from 'void (__cdecl *)(int,int,int,int)' to 'CvMouseCallback' 的解决方法
但是移植到VS2008中,cvSetMouseCallback()函数总是会提示如标题的错误提示,解决办法是:
将void on_mouse()函数,定义为void on_mouse()( int event, int x, int y, int flags,void* ustc)即可,程序中不需要对ustc指针做任何操作。这样程序就可以正常运行了。