• Advertisement
Sign in to follow this  

"error C2065: 'WM_MOUSEWHEEL' : undeclared identifier"

This topic is 4386 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i try to use WM_MOUSEWHEEL and visual studio says that it is undeclared identifier..?! i totally don't understand.. it is defined in windows.h! does anyone know what is wrong in here?

Share this post


Link to post
Share on other sites
Advertisement
Before you include windows.h, you need to go: #define _WIN32_WINNT 0x0501. You can change 0x0501 (which means XP) to any version above 0x0400. That's because this is a "newer" feature and the compiler needs to know you're basicly excluding any version prior to what the minimum requirement is (basicly, you can't use the code on Win95 machines)

The zmouse thing is legacy if I recall. Meant to work if you need it with Win95 and NT3.1

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement