Errors with zmouse.h when compiling an ATL project with MFC support

Hi I'm trying to compile an ATL project with MFC support, I have created an entirely bare project exactly as the wizard has set up but when I compile it, it gives me 16 errors straight off the bat. The errors are as follows:

error C2146: syntax error : missing ';' before identifier 'HwndMSWheel'      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      141      
error C2433: 'HWND' : 'inline' not permitted on data declarations      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      141      
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      141      
error C2065: 'PUINT' : undeclared identifier      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      142      
error C2146: syntax error : missing ')' before identifier 'puiMsh_MsgMouseWheel'      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      142      
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      142      
error C2059: syntax error : ')'      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      147      
error C2143: syntax error : missing ';' before '{'      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      148      
error C2447: '{' : missing function header (old-style formal list?)      d:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h      148      
error C2146: syntax error : missing ';' before identifier 'HRESULT'      d:\program files\microsoft visual studio 8\vc\platformsdk\include\commctrl.h      29      
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int      d:\program files\microsoft visual studio 8\vc\platformsdk\include\commctrl.h      29      
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int      d:\program files\microsoft visual studio 8\vc\platformsdk\include\commctrl.h      29      
error C2065: 'CALLBACK' : undeclared identifier      d:\program files\microsoft visual studio 8\vc\platformsdk\include\prsht.h      97      
error C2065: 'LPFNPSPCALLBACKA' : undeclared identifier      d:\program files\microsoft visual studio 8\vc\platformsdk\include\prsht.h      97      
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int      d:\program files\microsoft visual studio 8\vc\platformsdk\include\prsht.h      97      
fatal error C1903: unable to recover from previous error(s); stopping compilation      d:\program files\microsoft visual studio 8\vc\platformsdk\include\prsht.h      97      

Any ideas?

Surely the application should compile as soon as the wizard has created it.

Help!!!

Pete
pj_bennettAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

evilrixSenior Software Engineer (Avast)Commented:
I'm just guessing, but it looks like there is a missing "#include <windows.h>" somewhere. If this appears to be the case try inserting this line above all of the other includes just to see if it helps.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pj_bennettAuthor Commented:
That's just the ticket, fantastic!!  Thank alot
0
evilrixSenior Software Engineer (Avast)Commented:
You are very welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.