![]() |
|
#1
|
|||
|
|||
getting following errors in vc++Hi
I have one opensource of vc++. While executing this code it is giving the following errors. 1)error C2433: 'HWND' : 'inline' not permitted on data declarations 2)error C2143: syntax error : missing ';' before '{' 3)error C2447: '{' : missing function header (old-style formal list?) 4)error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 5)error C2086: 'int CALLBACK' : redefinition If any one got these errors and knew the solution please let me know. Thank You angle |
|
#2
|
|||
|
|||
Re: getting following errors in vc++Quote:
There are many (tens, hundreds, ...) ways to get errors. Please post your code. Then someone may be able to help tell how your code (or your development environment, or whatever...) caused the errors. Post the exact error messages (including line numbers). Paste the messages directly in your post (don't paraphrase or abbreviate). In addition to showing us the code, tell us what compiler you are using. Sometimes it makes a difference to people trying to help. Regards, Dave |
|
#3
|
|||
|
|||
Re: getting following errors in vc++Thanks for ur reply.
Here I am posting the errors and the code where i am getting these errors with line no. 1) Error 1 error C2146: syntax error : missing ';' before identifier 'HwndMSWheel' c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 141 2)Error 2 error C2433: 'HWND' : 'inline' not permitted on data declarations c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 141 3)Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 141 4)Error 4 error C2065: 'PUINT' : undeclared identifier c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 142 5)Error 5 error C2146: syntax error : missing ')' before identifier 'puiMsh_MsgMouseWheel' c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 142 6)Error 6 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 142 7)Error 7 error C2059: syntax error : ')' c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 146 9)Error 9 error C2447: '{' : missing function header (old-style formal list?) c:\program files\microsoft visual studio 8\vc\platformsdk\include\zmouse.h 148 The code is: Line.No __inline HWND HwndMSWheel( (141) PUINT puiMsh_MsgMouseWheel, (142) PUINT puiMsh_Msg3DSupport, PUINT puiMsh_MsgScrollLines, PBOOL pf3DSupport, PINT piScrollLines) (146) { (14 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); } I think this will be helpful in giving suggestions and modifications. Thanku |
|
#4
|
|||
|
|||
Re: getting following errors in vc++Did you try to remove the inline word?
|
|
#5
|
|||
|
|||
Re: getting following errors in vc++Quote:
CPP / C++ / C Code:
errors: c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(141) : error C2146: syntax error : m issing ';' before identifier 'HwndMSWheel' c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(141) : error C2433: 'HWND' : 'inline ' not permitted on data declarations c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(141) : error C4430: missing type spe cifier - int assumed. Note: C++ does not support default-int c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(142) : error C2065: 'PUINT' : undecl ared identifier c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(142) : error C2146: syntax error : m issing ')' before identifier 'puiMsh_MsgMouseWheel' c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(142) : error C4430: missing type spe cifier - int assumed. Note: C++ does not support default-int c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(147) : error C2059: syntax error : ' )' c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(148) : error C2143: syntax error : m issing ';' before '{' c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\zmouse.h(148) : error C2447: '{' : missing fu nction header (old-style formal list?) Looks familiar. Now: CPP / C++ / C Code:
Compiles with no messages. Output: Code:
Regards, Dave |
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| syntax errors in document | coder | MS Visual C++ / MFC Forum | 0 | 11-Mar-2006 05:12 |
| Compiler errors | vital_101 | C Programming Language | 4 | 12-Jan-2006 14:53 |
| Help with compiler errors | Krandygrl00 | C++ Forum | 3 | 01-Jun-2005 08:45 |
| Linker errors with multiple file progam | nkhambal | C Programming Language | 2 | 24-Apr-2005 03:37 |
| help to debug complier errors | nkhambal | C Programming Language | 3 | 04-Oct-2004 09:26 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The