如何在VC++中使用Windows Forms (VS2012-VS2015)

本文介绍了如何在Visual Studio 2012中继续使用Windows Forms工具,通过ProjectAddNewItem菜单添加Windows Form,或者创建一个空的CLR项目并手动添加所需的窗体和代码。

https://social.msdn.microsoft.com/Forums/en-US/a6d92d96-4a86-4ef7-a815-7f588a6073ea/vs-express-2012-no-c-windows-forms-application?forum=Vsexpressvc

在VS2010里新建项目,在VC++/CLR里可以直接新建Windows Forms项目,使用相关向导。但是从VS2012开始,不能在新建项目的VC++/CLR里直接找到Win Forms了。
这里有个变通的办法可以继续使用Win Forms工具。

The Windows Forms project template has been removed in VS2012 but you can still add forms to your project, see the Project\Add New Item menu, it has Windows Form in the UI section.

You can create a Empty CLR project, add a form to it and then add the necessary code in main to display the form, something like…

1.) You’ll also want to change the linker subsystem (Project Properties\Configuration Properties\Linker\System\SubSy…
tem) to Windows. 2.) Check the linker options in Project Properties, Configuration Properties, Linker, Advanced, Entry Point. Try setting that property to main.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值