imran khalil
imran khalil

Reputation: 35

Visual Studio 2013 missing CLR Widows Form application template

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?

Upvotes: 3

Views: 30825

Answers (2)

Roger Rowland
Roger Rowland

Reputation: 26279

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)

Upvotes: 5

Kulamani
Kulamani

Reputation: 517

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!

Upvotes: 5

Related Questions