Jump to content
  • Advertisement
Sign in to follow this  
maxest

"error C2065: 'WM_MOUSEWHEEL' : undeclared identifier"

This topic is 4562 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!