Visual Studio Windows 窗体应用程序不工作 [英] Visual Studio Windows Form app is not working
问题描述
我正在使用 visual studio 2010
,我正在使用 c++
制作窗体应用程序,它可以正常工作,直到出现 main form
,但是当我从工具栏中拖放某些东西时,它会显示以下错误:
I am using visual studio 2010
, and i am making window form application using c++
, it work fine until the appearance of main form
, but when i drag and drop something from toolbar it show me the below error :
但是当我检查时,我的系统中安装了以下文件
But when i checked i have the following files installed in my system
它在 c# 中对我有效,但在 c++ 中无效
it works for me in c# but not in c++
推荐答案
在 Visual Studio 2010 上,在解决方案资源管理器"中右键单击您的项目,然后单击属性".在属性"窗口的应用程序选项卡"上,检查 .NET Framework 4 Client Profile
是否是选定的目标框架".如果没有,请从下拉菜单中选择它.
On Visual Studio 2010, right-click on your project in the 'Solution Explorer' and click on 'Properties'. On the 'Application tab' in the Properties window check if .NET Framework 4 Client Profile
is the selected 'Target Framework'. If not, select it from the drop-down menu.
如果没问题,那么您的项目引用之一可能存在问题.
If that is fine, then there could be a problem with one of your Project References.
这篇关于Visual Studio Windows 窗体应用程序不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!