VS2010:error C3083: 'Windows': the symbol to the left of a '::' must be a type

在使用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”页的确定按钮回到工程。 --->
重新编译工程看看。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值