读书人

opencv_directshow.dsw批组建就出现了

发布时间: 2013-02-17 10:44:46 作者: rapoo

opencv_directshow.dsw批组建就出现了问题
我的opencv.dsw的批组建没有问题,但是opencv_directshow.dsw批组建就出现了问题,
问题是D:\Program Files (x86)\OpenCV\otherlibs\highgui\window_w32.cpp(243) : error C2065: 'GetWindowLongPtr' : undeclared identifier
D:\Program Files (x86)\OpenCV\otherlibs\highgui\window_w32.cpp(243) : error C2065: 'GWLP_USERDATA' : undeclared identifier
D:\Program Files (x86)\OpenCV\otherlibs\highgui\window_w32.cpp(422) : error C2065: 'SetWindowLongPtr' : undeclared identifier
D:\Program Files (x86)\OpenCV\otherlibs\highgui\window_w32.cpp(422) : error C2065: 'LONG_PTR' : undeclared identifier
D:\Program Files (x86)\OpenCV\otherlibs\highgui\window_w32.cpp(817) : error C2065: 'GetClassLongPtr' : undeclared identifier
D:\Program Files (x86)\OpenCV\otherlibs\highgui\window_w32.cpp(817) : error C2065: 'GCLP_HBRBACKGROUND' : undeclared identifier
D:\Program Files (x86)\OpenCV\otherlibs\highgui\window_w32.cpp(961) : error C2065: 'GCLP_HCURSOR' : undeclared identifier
D:\Program Files (x86)\OpenCV\otherlibs\highgui\window_w32.cpp(1242) : error C2065: 'GWLP_WNDPROC' : undeclared identifier
我的系统是64位的win7系统。另外我在安装directSDK也出现了问题。想安装9.0b。但是电脑显示我已经安装了更新的版本了。估计是以前玩游戏的时候装的。可是现在由于编程需要,该怎么换呢?求帮忙啊 opencv 批组建
[解决办法]
direct
是可以高低版本共存

'GetWindowLongPtr' 重新生成看看!
[解决办法]
好象是没识别已包含的相关的头文件,也就是已包含的头文件并没对所有需要这里面的变量的文件都有效,就相当于需要这些变量的文件里并没包含相关的头文件

读书人网 >VC/MFC

热点推荐