Menu

'WM_GESTURE' was not declared in this scope

Help
berk76
2015-03-31
2015-04-01
  • berk76

    berk76 - 2015-03-31

    Hello,

    I am trying to catch WM_GESTURE message, but compiler is falling with:

    'WM_GESTURE' was not declared in this scope

    I can see WM_GESTURE is present in winuser.h:

    #if _WIN32_WINNT >= 0x0601
    #define WM_GESTURE 0x0119
    ...

    I have WINDOWS 8.1 Pro. But in my case _WIN32_WINNT is set to 0x0502.

    Can somebody tell me what is wrong?

    Thank for advice.

    Jarda

     
  • berk76

    berk76 - 2015-04-01

    Hello,

    so I discovered page where Microsoft is suggesting to change macro manually:

    https://msdn.microsoft.com/en-us/library/6sehtctf.aspx

    When I add following to my makefile all works well for me:

    CFLAGS = -D WINVER=0x0603 -D _WIN32_WINNT=0x0603

    Jarda

     
  • rubenvb

    rubenvb - 2015-04-01

    That's exactly what you're expected to do if you want to use certain APIs.

    I was about to dig up that page to show you :)

     
  • Kenneth Benson

    Kenneth Benson - 2015-04-01

    Is there a way to download the whole thing as a zip or 7z? The only internet access I have is at the public library and it's blocking the installer download. :(

     

Log in to post a comment.