title: LINK : fatal error LNK1561: entry point must be defined
body: <p>So I'm using Visual Basic C++ 2010 to right my Visual Hello World project for school. I've gotten the code written but I keep getting 'LINK : fatal error LNK1561: entry point must be defined'. </p>
  
  <p>I've looked under </p>
  
  <blockquote>
    <p><strong>Properties -> Linker -> System</strong> ></p>
  </blockquote>
  
  <p>for the Configuration and it's blank. This is my code. Can you point it out on where I need to define my entry point?</p>
  
  <pre><code>    #pragma once
  
  namespace Visual_Hello_World {
  
  using namespace System;
  using namespace System::ComponentModel;
  using namespace System::Collections;
  using namespace System::Windows::Forms;
  using namespace System::Data;
  using namespace System::Drawing;
  
  /// &lt;summary&gt;
  /// Summary for HelloWorld
  /// &lt;/summary&gt;
  public ref class HelloWorld : public System::Windows::Forms::Form
  {
  public:
      HelloWorld(void)
      {
          InitializeComponent();
          //
          //TODO: Add the constructor code here
          //
      }
  
  protected:
      /// &lt;summary&gt;
      /// Clean up any resources being used.
      /// &lt;/summary&gt;
      ~HelloWorld()
      {
          if (components)
          {
              delete components;
          }
      }
  private: System::Windows::Forms::Button^  button1;
  protected: 
  private: System::Windows::Forms::Label^  label1;
  private: System::Windows::Forms::Label^  label2;
  
  private:
      /// &lt;summary&gt;
      /// Required designer variable.
      /// &lt;/summary&gt;
      System::ComponentModel::Container ^components;
  
  #pragma region Windows Form Designer generated code
      /// &lt;summary&gt;
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      /// &lt;/summary&gt;
      void InitializeComponent(void)
      {
          this-&gt;button1 = (gcnew System::Windows::Forms::Button());
          this-&gt;label1 = (gcnew System::Windows::Forms::Label());
          this-&gt;label2 = (gcnew System::Windows::Forms::Label());
          this-&gt;SuspendLayout();
          // 
          // button1
          // 
          this-&gt;button1-&gt;Font = (gcnew System::Drawing::Font(L"Modern No. 20", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
              static_cast&lt;System::Byte&gt;(0)));
          this-&gt;button1-&gt;Location = System::Drawing::Point(56, 105);
          this-&gt;button1-&gt;Name = L"button1";
          this-&gt;button1-&gt;Size = System::Drawing::Size(166, 44);
          this-&gt;button1-&gt;TabIndex = 0;
          this-&gt;button1-&gt;Text = L"&amp;Click Me!";
          this-&gt;button1-&gt;UseVisualStyleBackColor = true;
          this-&gt;button1-&gt;Click += gcnew System::EventHandler(this, &amp;HelloWorld::button1_Click);
          // 
          // label1
          // 
          this-&gt;label1-&gt;AutoSize = true;
          this-&gt;label1-&gt;Font = (gcnew System::Drawing::Font(L"Modern No. 20", 26.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
              static_cast&lt;System::Byte&gt;(0)));
          this-&gt;label1-&gt;Location = System::Drawing::Point(38, 31);
          this-&gt;label1-&gt;Name = L"label1";
          this-&gt;label1-&gt;Size = System::Drawing::Size(204, 36);
          this-&gt;label1-&gt;TabIndex = 1;
          this-&gt;label1-&gt;Text = L"Hello World!";
          // 
          // label2
          // 
          this-&gt;label2-&gt;AutoSize = true;
          this-&gt;label2-&gt;Font = (gcnew System::Drawing::Font(L"Modern No. 20", 21.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
              static_cast&lt;System::Byte&gt;(0)));
          this-&gt;label2-&gt;Location = System::Drawing::Point(50, 181);
          this-&gt;label2-&gt;Name = L"label2";
          this-&gt;label2-&gt;Size = System::Drawing::Size(184, 31);
          this-&gt;label2-&gt;TabIndex = 2;
          this-&gt;label2-&gt;Text = L"For a surprise!";
          // 
          // HelloWorld
          // 
          this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);
          this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
          this-&gt;ClientSize = System::Drawing::Size(284, 262);
          this-&gt;Controls-&gt;Add(this-&gt;label2);
          this-&gt;Controls-&gt;Add(this-&gt;label1);
          this-&gt;Controls-&gt;Add(this-&gt;button1);
          this-&gt;Name = L"HelloWorld";
          this-&gt;Text = L"HelloWorld";
          this-&gt;Load += gcnew System::EventHandler(this, &amp;HelloWorld::HelloWorld_Load);
          this-&gt;ResumeLayout(false);
          this-&gt;PerformLayout();
  
      }
  #pragma endregion
  private: System::Void HelloWorld_Load(System::Object^  sender, System::EventArgs^  e) {
           }
  private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
  
               MessageBox::Show ("Fun Fact: the Pharaoh Tutankhamun died when he was 19 years old after a severe infection set in his leg, which was wounded in battle. King Tut's leg was crushed, resulting in him having to walk around with a cane. King Tut has the largest collection of canes to date.");
           }
  };
  </code></pre>
  
  <p>}</p>