errors while executing vc++ code

Home Forums C++ Programming errors while executing vc++ code

This topic contains 1 reply, has 1 voice, and was last updated by  KhushbooJain 11 years, 5 months ago.

  • Author
    Posts
  • #1941

    KhushbooJain
    Member
    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

  • #3195

    KhushbooJain
    Member

    @guru wrote:

    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 filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 141
    2)Error 2 error C2433: ‘HWND’ : ‘inline’ not permitted on data declarations c:program filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 141
    3)Error 3 error C4430: missing type specifier – int assumed. Note: C++ does not support default-int c:program filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 141
    4)Error 4 error C2065: ‘PUINT’ : undeclared identifier c:program filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 142
    5)Error 5 error C2146: syntax error : missing ‘)’ before identifier ‘puiMsh_MsgMouseWheel’ c:program filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 142
    6)Error 6 error C4430: missing type specifier – int assumed. Note: C++ does not support default-int c:program filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 142
    7)Error 7 error C2059: syntax error : ‘)’ c:program filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 146
    8)Error 8 error C2143: syntax error : missing ‘;’ before ‘{‘ c:program filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 148
    9)Error 9 error C2447: ‘{‘ : missing function header (old-style formal list?) c:program filesmicrosoft visual studio 8vcplatformsdkincludezmouse.h 148

    The code is:

    I think this will be helpful in giving suggestions and modifications.

    Thanku

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble