?
Solved

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

Posted on 2008-02-01
3
Medium Priority
?
934 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:pj_bennett
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 2000 total points
ID: 20795603
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
 

Author Comment

by:pj_bennett
ID: 20795633
That's just the ticket, fantastic!!  Thank alot
0
 
LVL 40

Expert Comment

by:evilrix
ID: 20795646
You are very welcome.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
In this post we will learn different types of Android Layout and some basics of an Android App.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

598 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question