VS2010:error C3083: 'Windows': the symbol to the left of a '::' must be a type
2012-01-19 16:54
756 查看
在使用Visual Studio2010创建MFC工程后出现的编译错误:error C3083: 'Windows': the symbol to the left of a '::' must be a type,定位这个错误在这条语句上:System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException);
可以通过以下步骤解决:右键单击Solution Explorer中的工程 --->
选择References --->
打开“Propery Pages”页,在左边栏选择Common Properties的Framework andReferences项 --->
在中间栏的下边点击“Add NewReferences ”按钮,弹出“Add References”对话框 --->
选择".NET"页 --->
选择“System.Windows.Forms 版本为 Version 4.0.0.0”项,请点击OK按钮确定 --->
返回到“Propery Pages”页,可以看到在“References”栏Name中新增了“System.Windows.Forms”项,点击“Propery
Pages”页的确定按钮回到工程。 --->
重新编译工程看看。
可以通过以下步骤解决:右键单击Solution Explorer中的工程 --->
选择References --->
打开“Propery Pages”页,在左边栏选择Common Properties的Framework andReferences项 --->
在中间栏的下边点击“Add NewReferences ”按钮,弹出“Add References”对话框 --->
选择".NET"页 --->
选择“System.Windows.Forms 版本为 Version 4.0.0.0”项,请点击OK按钮确定 --->
返回到“Propery Pages”页,可以看到在“References”栏Name中新增了“System.Windows.Forms”项,点击“Propery
Pages”页的确定按钮回到工程。 --->
重新编译工程看看。
相关文章推荐
- VS2010:error C3083: 'Office': the symbol to the left of a '::' must be a type
- left of '->GetStatus' must point to class/struct/union/generic type
- error C2227: left of '->first' must point to class/struct/union
- 执行 maven 命令 报错Unable to add module to the current project as it is not of packaging type 'pom'
- Swift Compiler Error Binary oprator '+' cannot be applied to operands of type 'UInt16' and 'UInt8'
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/ history_child_
- Property with 'retain (or strong)' attribute must be of object type
- Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' charac
- 怎样解决错误:error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value
- A definition for the symbol '' could not be located (vs2010)
- The type of the expression must be an array type but it resolved to Point
- Property with 'retain (or strong)' attribute must be of object type
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tx_search_friend
- 『IOS』Property with 'retain (or strong)' attribute must be of object type
- Could not load extension from . The 'manifest_version' key must be present and set to 2 (without quo
- mysql:Variable 'character_set_client' can't be set to the value of 'NULL'解决
- The project could not be deployed to the 'localhost' server because of the following connectivity problems.
- No sources that matches the given name (at 'layout_toLeftOf' with value '@id/
- [问题记录]Property with 'retain (or strong)' attribute must be of object type
- thinkphp5错误:类型错误: Argument 1 passed to think\Hook::import() must be of the type array