Game Development Community

TGEA 1.7.1 - 'WM_MOUSEWHEEL' : undeclared identifier

by Konrad Kiss · in Torque Game Engine Advanced · 06/25/2008 (5:49 am) · 5 replies

Depending on what ide / compiler you use, you might receive the following error messages when compiling the new TGEA 1.7.1 source (I'm using Visual C++ 2008 Express Edition):

1>winDispatch.cpp
1>..\..\..\..\..\engine\source\windowManager\win32\winDispatch.cpp(289) : error C2065: 'WM_MOUSEWHEEL' : undeclared identifier
1>..\..\..\..\..\engine\source\windowManager\win32\winDispatch.cpp(289) : error C2051: case expression not constant
1>..\..\..\..\..\engine\source\windowManager\win32\winDispatch.cpp(291) : error C3861: 'GET_WHEEL_DELTA_WPARAM': identifier not found

To resolve this, just change the following conditional define near the top of the file:

#if _MSC_VER < 1500
#define _WIN32_WINNT 0x0400
#endif

to this: (instead of < use <=)

#if _MSC_VER <= 1500
#define _WIN32_WINNT 0x0400
#endif

I hope it saves a someone a little time.

Konrad

#1
10/11/2009 (3:14 pm)
Thank you! I was pulling out my hair looking for a solution to this.
#2
04/11/2010 (5:17 am)
This didn't fix it for me unfortunately. But then I am using the 7.1 Windows SDK with VS.NET 2010.
#3
04/12/2010 (1:59 pm)
Just made a post in the 3D Isometrix forum with how I solved the problem.

http://www.torquepowered.com/community/forums/viewthread/113891
#4
05/14/2010 (12:31 am)
Good job!!!
#5
06/08/2010 (3:49 am)
thanks