【问题标题】:setting the openCV configuration in an openGL project produce several errors在 openGL 项目中设置 openCV 配置会产生几个错误
【发布时间】:2013-11-09 09:10:43
【问题描述】:

我有一个为 openGL 设置的 win32 解决方案;它运作良好;但我想写一个使用openCV函数的函数;我为 X86 和 X64 设置了 openCV 的配置;;我注释了 openCV 函数,只是为了测试配置的正确性,我运行它;
但是当我想在 X64 上运行它时,我遇到了以下错误:

Error   1   error C2065: 'GWL_HINSTANCE' : undeclared identifier    D:\matrix\matrixProjection\src\ControllerMain.cpp   35  1   matrixProjection

Error   2   error C2664: 'CreateDialogParamW' : cannot convert parameter 4 from 'BOOL (__cdecl *)(HWND,UINT,WPARAM,LPARAM)' to 'DLGPROC'    D:\matrix\matrixProjection\src\DialogWindow.cpp 47  1   matrixProjection

错误2指向这行代码:

HWND DialogWindow::create()
{
   /*-->this line*/ handle = ::CreateDialogParam(instance, MAKEINTRESOURCE(id), parentHandle, Win::dialogProcedure, (LPARAM)controller);

    return handle;
}

但在调试 Win32 配置时,它会运行;

我在项目中使用了 openGL32;有没有可能是原因?是否有任何适用于 openGL 的 X64 版本? 我知道在 X64 模式下需要一些我的解决方案无法处理的东西; 我用谷歌搜索了很多,但没有找到任何解决方案;我该如何解决?

【问题讨论】:

    标签: c++ visual-studio-2010 opengl opencv windows-7-x64


    【解决方案1】:

    我认为我们不能同时使用 opengl32 和 opencv64;所以但是我在 x46 系统上工作,但我设置了 opencv32 并且它运行良好;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-01-05
      • 2016-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-25
      • 1970-01-01
      相关资源
      最近更新 更多