Я пытаюсь преобразовать свой проект MFC, созданный с VS2005, в VS2010.Когда я пытаюсь скомпилировать проект на моем ноутбуке (Windows 7 x64), он работает без проблем с VS2010, но другой компьютер (как ни странно, где был создан проект) выдает кучу ошибок, все в winuser.h (ниже).Я пытался найти причину, но безуспешно, любая помощь будет принята с благодарностью.
Error 4 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11405 1 Visualization
Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11408 1 Visualization
Error 7 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11412 1 Visualization
Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11415 1 Visualization
Error 10 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11419 1 Visualization
Error 11 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11422 1 Visualization
Error 24 error C2513: 'BOOL *' : no variable declared before '=' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 18 error C2491: 'GetMonitorInfoW' : definition of dllimport data not allowed c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11484 1 Visualization
Error 14 error C2491: 'GetMonitorInfoA' : definition of dllimport data not allowed c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11478 1 Visualization
Error 21 error C2275: 'LPRECT' : illegal use of this type as an expression c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 22 error C2275: 'LPARAM' : illegal use of this type as an expression c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 20 error C2275: 'HDC' : illegal use of this type as an expression c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 23 error C2165: 'left-side modifier' : cannot modify pointers to data c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 12 error C2146: syntax error : missing ')' before identifier 'hMonitor' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11478 1 Visualization
Error 16 error C2146: syntax error : missing ')' before identifier 'hMonitor' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11484 1 Visualization
Error 3 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11405 1 Visualization
Error 6 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11412 1 Visualization
Error 9 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11419 1 Visualization
Error 15 error C2059: syntax error : ')' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11479 1 Visualization
Error 19 error C2059: syntax error : ')' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11485 1 Visualization