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

被折叠的 条评论
为什么被折叠?



