Link to home
Start Free TrialLog in
Avatar of pj_bennett
pj_bennett

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pj_bennett
pj_bennett

ASKER

That's just the ticket, fantastic!!  Thank alot
You are very welcome.