Resource.h not found... Gesture Recognizer Sample

Resource.h not found... Gesture Recognizer Sample

I am trying to follow a Gesture Recognizer sample, but I can't get it to run because of
Cannot open include file: 'resource.h': No such file or directory error.
resource.h is in the project solution, and Ican see it's code.
Any help will be appreciated.
thank you

10 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I copied resource.h from Res to project folder and now I am getting:
cannot open include file 'afxres.h'
It seems like it can be a linking error... but I am not sure how to proceed with it.

Which Visual Studio version are you using? VS2012 or VS2010? Thanks, David

I was using VS 2010 Express, now I switched to VS Pro 2010, which get rid of the error.
Now I am having some new issues.......

The first app (http://software.intel.com/en-us/sites/default/files/article/328725/myfir...) works fine, but getting the second one to work is a nightmare

Warning    1    warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    86
Warning    2    warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    132
Warning    3    warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    132
Warning    4    warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    132
Warning    5    warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    132
Warning    6    warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    145
Warning    7    warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    145
Warning    8    warning C4244: 'initializing' : conversion from 'pxcF32' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    145
Warning    9    warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    222
Warning    10    warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    222
Warning    11    warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data    c:\users\jchudzynski.argonet\documents\visual studio 2010\projects\cameratest3\cameratest3\gesture_render.cpp    230
Error    12    error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in libpxcutils_d.lib(util_pipeline_raw.obj)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\msvcprtd.lib(MSVCP100D.dll)
Error    13    error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in libpxcutils_d.lib(util_pipeline_raw.obj)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\msvcprtd.lib(MSVCP100D.dll)
Error    14    error LNK2005: "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ) already defined in libpxcutils_d.lib(util_pipeline_raw.obj)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\msvcprtd.lib(MSVCP100D.dll)
Error    15    error LNK2005: "public: struct std::_Iterator_base12 * * __thiscall std::_Container_base12::_Getpfirst(void)const " (?_Getpfirst@_Container_base12@std@@QBEPAPAU_Iterator_base12@2@XZ) already defined in libpxcutils_d.lib(util_pipeline_raw.obj)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\msvcprtd.lib(MSVCP100D.dll)
Warning    16    warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\LINK
Error    17    error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    18    error LNK2001: unresolved external symbol __imp__DeleteDC@4    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    19    error LNK2019: unresolved external symbol __imp__TransparentBlt@44 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    20    error LNK2019: unresolved external symbol __imp__GetObjectW@12 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    21    error LNK2019: unresolved external symbol __imp__LoadBitmapW@8 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    22    error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    23    error LNK2001: unresolved external symbol __imp__CreateCompatibleDC@4    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    24    error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    25    error LNK2001: unresolved external symbol __imp__DeleteObject@4    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    26    error LNK2019: unresolved external symbol __imp__Arc@36 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    27    error LNK2019: unresolved external symbol __imp__LineTo@12 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    28    error LNK2019: unresolved external symbol __imp__MoveToEx@16 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    29    error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    30    error LNK2001: unresolved external symbol __imp__SelectObject@8    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    31    error LNK2019: unresolved external symbol __imp__CreatePen@12 referenced in function "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\gesture_render.obj
Error    32    error LNK2019: unresolved external symbol __imp__CreateWindowExW@48 referenced in function "public: __thiscall UtilRender::UtilRender(wchar_t *)" (??0UtilRender@@QAE@PA_W@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    33    error LNK2019: unresolved external symbol __imp__RegisterClassW@4 referenced in function "public: __thiscall UtilRender::UtilRender(wchar_t *)" (??0UtilRender@@QAE@PA_W@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    34    error LNK2019: unresolved external symbol __imp__LoadCursorW@8 referenced in function "public: __thiscall UtilRender::UtilRender(wchar_t *)" (??0UtilRender@@QAE@PA_W@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    35    error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "public: virtual __thiscall UtilRender::~UtilRender(void)" (??1UtilRender@@UAE@XZ)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    36    error LNK2019: unresolved external symbol __imp__SetWindowPos@28 referenced in function "public: void __thiscall UtilRender::SetSize(unsigned int,unsigned int)" (?SetSize@UtilRender@@QAEXII@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    37    error LNK2019: unresolved external symbol __imp__GetWindowInfo@8 referenced in function "public: void __thiscall UtilRender::SetSize(unsigned int,unsigned int)" (?SetSize@UtilRender@@QAEXII@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    38    error LNK2019: unresolved external symbol __imp__IsWindowVisible@4 referenced in function "public: bool __thiscall UtilRender::RenderFrame(class PXCImage *)" (?RenderFrame@UtilRender@@QAE_NPAVPXCImage@@@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    39    error LNK2019: unresolved external symbol __imp__InvalidateRect@12 referenced in function "public: bool __thiscall UtilRender::RenderFrame(class PXCImage *)" (?RenderFrame@UtilRender@@QAE_NPAVPXCImage@@@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    40    error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "public: bool __thiscall UtilRender::RenderFrame(class PXCImage *)" (?RenderFrame@UtilRender@@QAE_NPAVPXCImage@@@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    41    error LNK2019: unresolved external symbol __imp__CreateDIBitmap@24 referenced in function "public: bool __thiscall UtilRender::RenderFrame(class PXCImage *)" (?RenderFrame@UtilRender@@QAE_NPAVPXCImage@@@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    42    error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "public: bool __thiscall UtilRender::RenderFrame(class PXCImage *)" (?RenderFrame@UtilRender@@QAE_NPAVPXCImage@@@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    43    error LNK2019: unresolved external symbol __imp__SetWindowTextW@8 referenced in function "public: bool __thiscall UtilRender::RenderFrame(class PXCImage *)" (?RenderFrame@UtilRender@@QAE_NPAVPXCImage@@@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    44    error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function "public: void __thiscall UtilRender::DoMessageLoop(void)" (?DoMessageLoop@UtilRender@@QAEXXZ)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    45    error LNK2019: unresolved external symbol __imp__PeekMessageW@20 referenced in function "public: void __thiscall UtilRender::DoMessageLoop(void)" (?DoMessageLoop@UtilRender@@QAEXXZ)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    46    error LNK2019: unresolved external symbol __imp__DefWindowProcW@16 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    47    error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    48    error LNK2019: unresolved external symbol __imp__EndPaint@8 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    49    error LNK2019: unresolved external symbol __imp__StretchBlt@44 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    50    error LNK2019: unresolved external symbol __imp__SetStretchBltMode@8 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    51    error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    52    error LNK2019: unresolved external symbol __imp__BeginPaint@8 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    53    error LNK2019: unresolved external symbol __imp__SetWindowLongW@12 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    54    error LNK2019: unresolved external symbol __imp__GetWindowLongW@8 referenced in function "protected: static long __stdcall UtilRender::WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@UtilRender@@KGJPAUHWND__@@IIJ@Z)    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxcutils_d.lib(util_render.obj)
Error    55    error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _PXCSession_Create@4    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxc_d.lib(libpxc.obj)
Error    56    error LNK2019: unresolved external symbol __imp__RegGetValueW@28 referenced in function _PXCSession_Create@4    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxc_d.lib(libpxc.obj)
Error    57    error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function _PXCSession_Create@4    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\CameraTest3\libpxc_d.lib(libpxc.obj)
Error    58    error LNK1120: 37 unresolved externals    C:\Users\jchudzynski.ARGONET\Documents\Visual Studio 2010\Projects\CameraTest3\Debug\CameraTest3.exe

I am having this exact same problem. I have not, however, tried switching to VS 2010 pro yet.

I ended up running a GestureViewer sample project but I wish I would know how to create similar projects from scratch.
I love samples but it seems that documentation is missing some steps to recreate them, or I made some mistakes along a way.
Sample projects work on both VS 2008 and 2010 pro I haven't tried it with Express.

Free S.'s picture

I copy the code from this website:http://software.intel.com/sites/landingpage/perceptual_computing/documentation/html/index.html?pxccapture.html   but I get the following errors:

1>Try1.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z)
1>Try1.obj : error LNK2019: unresolved external symbol "public: bool __thiscall GestureRender::RenderFrame(class PXCImage *,class PXCGesture *,struct PXCGesture::Gesture *,class PXCImage *)" (?RenderFrame@GestureRender@@QAE_NPAVPXCImage@@PAVPXCGesture@@PAUGesture@3@0@Z) referenced in function "public: virtual bool __thiscall GesturePipeline::OnNewFrame(void)" (?OnNewFrame@GesturePipeline@@UAE_NXZ)

anyone can help me?  how did you solve this problem? Thank you.

Free S.'s picture

how did you solve the problem? can you tell me?  thanks  I am have the same question with you.

Free S.'s picture

I have no problem when I try the two examples you mentioned above. But when I am trying the example showed in this website:http://software.intel.com/sites/landingpage/perceptual_computing/documentation/html/index.html?pxccapture.html

I met the following erroes:1>Try1.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall GestureRender::DrawMore(struct HDC__ *,double,double)" (?DrawMore@GestureRender@@MAEXPAUHDC__@@NN@Z) 1>Try1.obj : error LNK2019: unresolved external symbol "public: bool __thiscall GestureRender::RenderFrame(class PXCImage *,class PXCGesture *,struct PXCGesture::Gesture *,class PXCImage *)" (?RenderFrame@GestureRender@@QAE_NPAVPXCImage@@PAVPXCGesture@@PAUGesture@3@0@Z) referenced in function "public: virtual bool __thiscall GesturePipeline::OnNewFrame(void)" (?OnNewFrame@GesturePipeline@@UAE_NXZ)

So can you tell me how did you solve your errors? thankyou very much.

If your guys using visual studio express, please change all the 'afxres.h' to 'windows.h' and it will solve the problem.

Login to leave a comment.