While my crystal ball is out for polishing, why not post the lines of code associated with these errors?
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
What about your source code, does it include windows.h before including any other windows header file?
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
As the diagnostic message is heavily hinting for you to do, look at the code before line 141.Error 1 error C2146: syntax error : missing ';' before identifier 'HwndMSWheel' c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 141
__inline HWND HwndMSWheel( /* 141 */
PUINT puiMsh_MsgMouseWheel, /* 142 */
PUINT puiMsh_Msg3DSupport,
PUINT puiMsh_MsgScrollLines,
PBOOL pf3DSupport,
PINT piScrollLines) /* 146 */
{ /* 148 */
HWND hdlMsWheel;
hdlMsWheel = FindWindow(MSH_WHEELMODULE_CLASS, MSH_WHEELMODULE_TITLE);
*puiMsh_MsgMouseWheel = RegisterWindowMessage(MSH_MOUSEWHEEL);
*puiMsh_Msg3DSupport = RegisterWindowMessage(MSH_WHEELSUPPORT);
*puiMsh_MsgScrollLines = RegisterWindowMessage(MSH_SCROLL_LINES);
if ( *puiMsh_Msg3DSupport )
*pf3DSupport = (BOOL)SendMessage(hdlMsWheel, *puiMsh_Msg3DSupport, 0, 0);
else
*pf3DSupport = FALSE; // default to FALSE
if ( *puiMsh_MsgScrollLines )
*piScrollLines = (int)SendMessage(hdlMsWheel, *puiMsh_MsgScrollLines, 0, 0);
else
*piScrollLines = 3; // default
return(hdlMsWheel);
}
Why do you have code in a header?
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Is it this ?In my source code windows.h is not included. afxwin.h is included in that code. What's in afxwin.h? You need to #include <windows.h> before you #include "zmouse.h" .
#include <windows.h>
#include "zmouse.h"
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Boy, you're really trying hard not to be helped.
Post copy-and-paste of real code, not "like this" paraphrasing.I included .Where?!? This is important to the question.
So, you've got an MFC project? Why are you adding old mouse stuff to it? I know neither area very well, but please tell us what the heck you are trying to do.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314