visual studio 2010 - LINK : fatal error LNK1561: entry point must be defined -


so i'm using visual basic c++ 2010 right visual hello world project school. i've gotten code written keep getting 'link : fatal error lnk1561: entry point must defined'.

i've looked under

properties -> linker -> system >

for configuration , it's blank. code. can point out on need define entry point?

    #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;  /// <summary> /// summary helloworld /// </summary> public ref class helloworld : public system::windows::forms::form { public:     helloworld(void)     {         initializecomponent();         //         //todo: add constructor code here         //     }  protected:     /// <summary>     /// clean resources being used.     /// </summary>     ~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:     /// <summary>     /// required designer variable.     /// </summary>     system::componentmodel::container ^components;  #pragma region windows form designer generated code     /// <summary>     /// required method designer support - not modify     /// contents of method code editor.     /// </summary>     void initializecomponent(void)     {         this->button1 = (gcnew system::windows::forms::button());         this->label1 = (gcnew system::windows::forms::label());         this->label2 = (gcnew system::windows::forms::label());         this->suspendlayout();         //          // button1         //          this->button1->font = (gcnew system::drawing::font(l"modern no. 20", 20.25f, system::drawing::fontstyle::regular, system::drawing::graphicsunit::point,              static_cast<system::byte>(0)));         this->button1->location = system::drawing::point(56, 105);         this->button1->name = l"button1";         this->button1->size = system::drawing::size(166, 44);         this->button1->tabindex = 0;         this->button1->text = l"&click me!";         this->button1->usevisualstylebackcolor = true;         this->button1->click += gcnew system::eventhandler(this, &helloworld::button1_click);         //          // label1         //          this->label1->autosize = true;         this->label1->font = (gcnew system::drawing::font(l"modern no. 20", 26.25f, system::drawing::fontstyle::regular, system::drawing::graphicsunit::point,              static_cast<system::byte>(0)));         this->label1->location = system::drawing::point(38, 31);         this->label1->name = l"label1";         this->label1->size = system::drawing::size(204, 36);         this->label1->tabindex = 1;         this->label1->text = l"hello world!";         //          // label2         //          this->label2->autosize = true;         this->label2->font = (gcnew system::drawing::font(l"modern no. 20", 21.75f, system::drawing::fontstyle::regular, system::drawing::graphicsunit::point,              static_cast<system::byte>(0)));         this->label2->location = system::drawing::point(50, 181);         this->label2->name = l"label2";         this->label2->size = system::drawing::size(184, 31);         this->label2->tabindex = 2;         this->label2->text = l"for surprise!";         //          // helloworld         //          this->autoscaledimensions = system::drawing::sizef(6, 13);         this->autoscalemode = system::windows::forms::autoscalemode::font;         this->clientsize = system::drawing::size(284, 262);         this->controls->add(this->label2);         this->controls->add(this->label1);         this->controls->add(this->button1);         this->name = l"helloworld";         this->text = l"helloworld";         this->load += gcnew system::eventhandler(this, &helloworld::helloworld_load);         this->resumelayout(false);         this->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: pharaoh tutankhamun died when 19 years old after severe infection set in leg, wounded in battle. king tut's leg crushed, resulting in him having walk around cane. king tut has largest collection of canes date.");          } }; 

}

i figured out wrong; using clr console application instead of windows form application.

for future reference else takes c++ programming using microsoft visual 2010 express; make sure using correct format. otherwise, program will not work.

thanks wrote helpful answers!


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -