How to Create Visual Studio 2013 Extension?

How do I create a working C++ Windows Form Application in Visual Express 2013?

  • Visual C++ > CLR Empty Porject then UI > Windows Form. It gives me this error every time i debug it http://i.imgur.com/3IIl4p8.jpg then " Error 1 error LNK1561: entry point must be defined c:\Users\Margart\documents\visual studio 2013\Projects\Project2\Project2\LINK Project2 "

  • Answer:

    Make sure that you have a main function

Ahmed Said at Quora Visit the source

Was this solution helpful to you?

Other answers

You have this problem because windows application forms are not properly supported in visual studio 2012 and later. In C++ should exist an entry point so the program know where to start executing. You need to locate your cpp file in your project and edit it like this: #include "MyForm.h"  using namespace System; using namespace System::Windows::Forms;   [STAThread] void Main(array<String^>^ args) { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false);  RandomNumberGenerator::MyForm form; Application::Run(%form); } Also you should follow this: At the right-mouse click on ProjectfileName, we get the Properties window. Configuration Properties->Linker->System Select Windows (/SUBSYSTEM:WINDOWS) for SubSystem. And also: Advanced->Entry Point, type in Main. The, hit OK. After this it should work. Note: This is not my work, I found had the same problem and found that solution in this tutorial http://www.bogotobogo.com/cplusplus/application_visual_studio_2013.php

Eris Sako

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.