Getting started with a plain c++ program!!

How do I just open and compile normal c program, without it being a "win32 console application" or any other fancy-shmancy stuff


Answer this question

Getting started with a plain c++ program!!

  • Herbert_de

    The simplest way through the IDE is to use an empty console application. You just need to choose "Console Application" and then click next. You will have different types of Console Applications, choose the empty one. This way you are free to add what ever simple code you want.

    Another option is to use the command line compilation tools if you are experienced how the compiler binaries work.

    Thanks,
      Ayman Shoukry
      VC++ Team

  • TreeSapp

    the options i have in File>new Project:
    CLR console application
    win32 console application

    When selecting either of these, I get all kinds of files to handle that specific profile. However, I just need to write simple code and test it...

    Thanks for your time

  • Ridi

    File->New->Project

    A window will spawn. Under the C++ header select "Win32", in the right pane select "Win32 Console Application." Give it a name and hit "OK."

    Hit Next.

    UNcheck "Precompiled header"
    check "empty project"

    click "finish"

    Done. Your project is created. Now we need to make a file.

    Now you will get a "solution explorer" on the left hand side. Right click on "Source files" and navigate to "Add->New Item." Make it a source file. This is your main .cpp file. Same procedure is followed to make header files, etc.

    Go nuts, have fun. Good luck!

    Philip

  • Getting started with a plain c++ program!!