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?


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.



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!