Bonjour,
J'�volue sous visual studio community 2015 en c++.
Je souhaiterais cr�er une application Windows Form c++.

J'effectue un test tr�s simple :

1) Fichier --> Nouveau --> Projet --> Visual c++ --> c++ Windows form

2) J'ex�cute le mode D�bogueur en mode local en debug.
Tous fonctionnent parfaitement bien. La fen�tre Windows Form s'affiche.

Mais en mode realise G�n�rer la solution l'erreur suivante s'affiche :
LNK1561 le point d'entr�e doit �tre d�fini.

Pourtant si j'ai bien compris les tutos c'est la proc�dure main le point d'entr�e dans le fichier cpp.

Fichier MyForm.cpp :

Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
#include "MyForm.h"
 
 
using namespace System;
using namespace System::Windows::Forms;
 
 
[STAThread]
void Main(array<String^>^ args)
{
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false);
 
	AWinForm2::MyForm form;
	Application::Run(%form);
 
 
 
 
}
Fichier MyForm.h :
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
#pragma once
 
namespace CppWinForm1 {
 
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
 
	/// <summary>
	/// Summary for MyForm
	/// </summary>
	public ref class MyForm : public System::Windows::Forms::Form
	{
	public:
		MyForm(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}
 
	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~MyForm()
		{
			if (components)
			{
				delete components;
			}
		}
 
	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;
 
#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->SuspendLayout();
			// 
			// MyForm
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(284, 261);
			this->Name = L"MyForm";
			this->Text = L"MyForm";
			this->Load += gcnew System::EventHandler(this, &MyForm::MyForm_Load);
			this->ResumeLayout(false);
 
		}
#pragma endregion
	private: System::Void MyForm_Load(System::Object^  sender, System::EventArgs^  e) {
	}
	};
}
Ces 2 fichiers ont �t� cr�es automatiquement lors de la cr�ation du projet.

Via Google je ne trouve pas la solution.
Si quelqu'un a des tutos sur Windows Form et explication sur le point d'entr�e cela me rendrais bien service (en Fran�ais si possible).
En attente d'une r�ponse, cordialement.