Visual Studio 2013 missing CLR Widows Form application template

帅比萌擦擦* 提交于 2021-02-18 17:46:25

问题


I was very surprise when I Tried to create Visual C++ Windows Form Application (CLR) in Visual Studio 2013 RC ultimate. I could not found any template for Windows form under CLR section. It was in Visual Studio 2010.
I tried by using "CLR Empty Project" but by adding any windows form it got error.

Error 1 error LNK1561: entry point must be defined

Any solution for this?


回答1:


This was a breaking change from VS2012.

As it says on the above MSDN page, under Breaking Changes in Visual C++:

Integrated Development Environment

  • The following project templates no longer exist:
    • Windows Forms Application
    • Windows Forms Control Library
  • Although we recommend that you do not create Windows Forms applications in C++/CLI, maintenance of existing C++/CLI UI applications is supported. If you have to create a Windows Forms application, or any other .NET UI application, use C# or Visual Basic. Use C++/CLI for interoperability purposes only.

(screenshot)




回答2:


Follow below steps for VC++ 2013:

Step-1: File -> New -> Project -> Templates -> Visual C++ -> CLR -> CLR Console Application -> OK -> Finish

Step-2: Right-Click on Source Files -> Add new Item -> Visual C++ -> UI -> Windows Forms (MyForm.h) -> Add

Step-3: Click on properties in top-right corner (or) Execute. Done!



来源:https://stackoverflow.com/questions/19348408/visual-studio-2013-missing-clr-widows-form-application-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!