0.7 — Compiling your first program

Before we can write our first program, we need to learn how to create new programs within our Integrated Development Environment (IDE). In this lesson, we’ll cover how to do that, and you’ll also compile and execute your first program!


To write a C++ program inside an IDE, we typically start by creating a new project (we’ll show you how to do this in a bit). A project is a container that holds all of your source code files, images, data files, etc… that are needed to produce an executable (or library, website, etc…) that you can run or use. The project also saves various IDE, compiler, and linker settings, as well as remembering where you left off, so that when you reopen the project later, the state of the IDE can be restored to wherever you left off. When you choose to compile your program, all of the .cpp files in the project will get compiled and linked.

Each project corresponds to one program. When you’re ready to create a second program, you’ll either need to create a new project, or overwrite the code in an existing project (if you don’t want to keep it). Project files are generally IDE specific, so a project created for one IDE will need to be recreated in a different IDE.

Best practice

Create a new project for each new program you write.

Console projects

When you create a new project, you’ll generally be asked what type of project you want to create. All of the projects that we will create in this tutorial will be console projects. A console project means that we are going to create programs that can be run from the Windows, Linux, or Mac console.

Here’s a screenshot of the Windows console:

Windows console

By default, console applications have no graphical user interface (GUI), they print text to the console, read input from the keyboard, and are compiled into stand-alone executable files. This is perfect for learning C++, because it keeps the complexity to a minimum, and ensures things work on a wide variety of systems.

Don’t worry if you’ve never used a console before, or don’t know how to access it. We’ll compile and launch our programs through our IDEs (which will invoke the console when necessary).

Workspaces / solutions

When you create a new project for your program, many IDEs will automatically add your project to a “workspace” or a “solution” (the term varies by IDE). A workspace or solution is a container that can hold one or more related projects. For example, if you were writing a game and wanted to have a separate executable for single player and multiplayer, you’d need to create two projects. It wouldn’t make sense for both of these projects to be completely independent -- after all, they are part of the same game. Mostly likely, each would be configured as a separate project within a single workspace/solution.

Although you can add multiple projects to a single solution, we generally recommend creating a new workspace or solution for each program, especially while learning. It’s simpler and there’s less chance of something going wrong.

Writing your first program

Traditionally, the first program programmers write in a new language is the infamous hello world program, and we aren’t going to deprive you of that experience! You’ll thank us later. Maybe.


Starting with this lesson, you will see many examples of C++ code presented. Most of these examples will look something like this:

If you select the code from these examples with your mouse and then copy/paste it into your IDE, you may also get the line numbers (depending on how you made the selection). If so, you’ll need to remove the line numbers manually before you compile.

Creating a project in Visual Studio 2019

When you run Visual Studio 2019, you should see a dialog that looks like this:

Visual Studio 2019 Get Started dialog

Select Create a new project.

You’ll then see a dialog that looks like this:

Visual Studio 2019 Create New Project dialog

If you’ve already opened a prior project, you can access this dialog via the File menu > New > Project.

Select Windows Desktop Wizard and click Next. If you don’t see this, then you probably forgot to choose to install the Desktop development with C++ workload when you installed Visual Studio. In that case, go back to lesson 0.6 -- Installing an Integrated Development Environment (IDE) and reinstall your Visual Studio as indicated (note: rather than doing a full reinstall, you can run the Visual Studio installer and modify your existing installation to add the C++ workload).

Next, you’ll see a dialog that looks like this:

Visual Studio 2019 Configure New Project dialog

Replace the existing project name with HelloWorld.

It’s recommended that you also check the Place solution and project in the same directory, as this reduces the number of subdirectories that get created with each project.

Click Create to continue.

Finally, you’ll see one last dialog:

Visual Studio 2019 Project options dialog

Make sure the Application type is set as Console Application (.exe) and that the Precompiled Header option is unselected. Then click OK.

You’ve now created a project! Jump down to the Visual Studio Solution Explorer section below to continue.

Creating a project in Visual Studio 2017 or older

To create a new project in Visual Studio 2017 or older, go to the File menu > New > Project. A dialog box will pop up that looks something like this:

Visual Studio 2017 New Project dialog

First, make sure Visual C++ is listed on the left side. If you don’t see Visual C++, then you probably forgot to choose to install the Desktop development with C++ workload when you installed Visual Studio. In that case, go back to lesson 0.6 -- Installing an Integrated Development Environment (IDE) and reinstall your Visual Studio as indicated (note: rather doing a full reinstall, you can run the Visual Studio installer and modify your existing install to add the C++ workload).

If you’re using Visual Studio 2017 v15.3 or newer, underneath Visual C++, select Windows Desktop and then select Windows Desktop Wizard in the main window.

If you don’t see Windows Desktop as an option, you’re probably using an older version of Visual Studio. That’s fine. Instead, choose Win32 and then Win32 Console Application in the main window.

Down below, in the Name field, enter the name of your program (replace the existing name with HelloWorld). In the Location field, you can optionally select a different location for your project to be placed into. The default is fine for now.

Click OK. If you’re using an older version of Visual Studio, the Win32 Application Wizard will launch. Press Next.

At this point, you should see a wizard dialog that looks something like this (older versions of Visual Studio use a different style, but have most of the same options):

Visual Studio 2017 Desktop wizard

Make sure you uncheck Precompiled Header.

Then click Ok or Finish. Now your project is created!

Visual Studio Solution Explorer

On the left or right side of the window, you should see a window titled Solution Explorer. Inside this window, Visual Studio has created a solution for you (Solution ‘HelloWorld’). Within that, with the name in bold, is your new project (HelloWorld). Within the project, Visual Studio has created a number of files for you, including HelloWorld.cpp (underneath the Source Files tree item). You may also see some other .cpp or .h files, which you can ignore for now.

Visual Studio 2019 initial windows

In the text editor, you will see that Visual Studio has already opened HelloWorld.cpp and created some code for you. Select and delete all of the code, and type/copy the following into your IDE:

To compile your program, either press F7 (if this doesn’t work, try Ctrl-Shift-B) or go to the Build menu > Build Solution. If all goes well, you should see the following appear in the Output window:

1>------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------
1>HelloWorld.vcxproj -> c:\users\alex\documents\visual studio 2017\Projects\HelloWorld\Debug\HelloWorld.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

This means your compile was successful!

Q: I got error C1010 ("fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?"). What now?

You forgot to turn off precompiled headers when you created your project. Recreate your project (as per the instructions above) and make sure to disable precompiled headers.

To run your compiled program, press Ctrl-F5, or go to the Debug menu and choose Start Without Debugging. You will see the following:

Program run

That is the result of your program! Congratulations, you’ve compiled and run your first program!

Creating a project in Code::Blocks

To create a new project, go to File menu > New > Project. A dialog box will pop up that looks like this:

Code::Blocks Project Dialog

Select Console application and press the Go (or Create) button.

If you see a console application wizard dialog, press Next, make sure C++ is selected and press Next again.

Now you will be asked to name your project. Title the project HelloWorld. You can save it wherever you wish. On Windows, we recommend you to save it in a subdirectory of the C drive, such as C:\CBProjects.

Code::Blocks Save Project Dialog

You may see another dialog asking you which configurations you want enabled. The defaults should be fine here, so select Finish.

Now your new project has been created.

On the left side of the screen, you should see a Management window, with the Projects tab selected. Inside that window, you’ll see a Workspace folder, with your HelloWorld project inside of it:

Code::Blocks Workspace

Inside the HelloWorld project, expand the Sources folder, and double click on “main.cpp”. You will see that a hello world program has already been written for you!

Replace that one with the following:

To build your project, press Ctrl-F9, or go to Build menu > Build. If all goes well, you should see the following appear in the Build log window:

-------------- Build: Debug in HelloWorld (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -g -std=c++14  -c C:\CBProjects\HelloWorld\main.cpp -o obj\Debug\main.o
mingw32-g++.exe  -o bin\Debug\HelloWorld.exe obj\Debug\main.o   
Output file is bin\Debug\HelloWorld.exe with size 1.51 MB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

This means your compile was successful!

To run your compiled program, press Ctrl-F10, or go to Build menu > Run. You will see something similar to the following:

Program run

That is the result of your program!

For Linux users

Linux users may need to install the additional packages before Code::Blocks will compile. Please see the Code::Blocks installation instructions in lesson 0.6 -- Installing an Integrated Development Environment (IDE) for more info.

If you’re using g++ on the command line

In this case, you don’t need to create a project. Simply paste the following into a text file named HelloWorld.cpp and save your file:

From the command line, type:

g++ -o HelloWorld HelloWorld.cpp

This will compile and link HelloWorld.cpp. To run it, type:

HelloWorld (or possibly ./HelloWorld), and you will see the output of your program.

If you’re using other IDEs or a web-based compiler

You will have to figure out how to do the following on your own:
1) Create a console project (IDEs only)
2) Add a .cpp file to the project (IDEs only, if one isn’t auto-created for you)
3) Paste the following code into the file:

4) Compile the project
5) Run the project

If compiling fails

It’s okay, take a deep breath. We can probably fix it. :)

First, look at the error message that the compiler gave you. Most often, it will contain a line number indicating which line was in error. Examine both that line and the lines around it, and make sure there are no typos or misspellings. Also make sure you’re not including line numbers in your code.

Second, look at the Q&A in lesson 0.8 -- A few common C++ problems, as your issue may be covered there.

Third, read the comments below -- someone may have encountered the same issue.

Finally, if all of the above fail, try searching for your error message on Google. It’s likely someone else has encountered this before and figured out how to fix it.

If your program runs but the window flashes and closes immediately

Some IDEs don’t automatically pause the console screen after the program has finished executing. Your program is running, but the output window is closing before you can view the results.

If this is the case with your IDE, the following two steps will fix your problem:

First, add or ensure the following lines are near the top of your program (Visual Studio users, make sure these lines appear after #include “pch.h” or #include “stdafx.h”, if those exist):

Second, add the following code at the end of the main() function (just before the return statement):

This will cause your program to wait for the user to press a key before continuing, which will give you time to examine your program’s output before your IDE closes the console window.

Other solutions, such as the commonly suggested system("pause") solution may only work on certain operating systems and should be avoided.

Your anti-virus or anti-malware may also be blocking execution of the program. If that’s the case, try temporarily disabling your scanners and see if the problem resolves.

For Visual Studio users

Visual Studio will not pause at the end of a console application if it is run with debugging (Debug Menu > Start Debugging). If you want it to pause, you can either use the code solution above, or run your program without debugging (Debug Menu > Start Without Debugging).


Congratulations, you made it through the hardest part of this tutorial (installing the IDE and compiling your first program)!

Don’t worry if you don’t understand what all the different lines in the Hello World program do. We’ll look at and explain each line in detail at the start of the next chapter.

0.8 -- A few common C++ problems
0.6 -- Installing an Integrated Development Environment (IDE)

865 comments to 0.7 — Compiling your first program

  • Edgar J. Wurst

    Just a note to add

    > std::cout << endl;

    To the Hello World program.

  • abby

    i am having trouble finding an interpreter that works on my mac.  i used terminal when i learned python but am not sure how to set up c++ on there, so what would be a good software to use? i also have eclipse but am not sure how to set up c++ on there either and think a website interpreter might be good if anyone can let me know of a good one.

  • Steve Rogers

    Why aren't you using - using namespace std; ? Instead you are writing std:: everywhere. Why is that. I thought using namespace std; is the way to do it. Its easier and dont need to write std:: with every command. Could you please explain?

    • murek

      using namespace std (or namespace whatever) is not considered as a good practice. there is a chance in more advanced programs that there will be two functions with the same name from different libraries and using namespaces like std:: is a way to distinguish them.
      if you use namespace std; and you add a library written by someone else with a function cout (very unlikely but possible) it will lead to unexpected results.
      a small disclaimer - i'm still learning, more experienced programmers might explain it in better way, feel free to correct me.

      • You're absolutely right. Even without using a third party library, name conflicts can occur between the `std` library and functions in the global namespace (eg. `abs` and `std::abs`).

  • fighter_fish

    Hello! I am using VS 2019 and followed the steps listed above. However, I haven't got the "Windows Desktop Project" dialogue after the "Configure the new project" dialogue, I'm just thrust into the Visual Studio Solution Explorer. Do I need to worry about this? I've followed all the steps correctly too.

  • Anthony

    I've tried reloading VSI twice after clearing all registry entries (using CCleaner) but keep getting this - anyone any ideas?

    • Disable precompiled headers in your project settings. Remove the includes to pc.h or stdafx.h.

      • Anthony

        The precompiled headers were disabled, but where and how do I remove the includes to pc.h or stdafx.h . PS I am an elderly noob - though I did use to be a COBOL programmer in the 70's and 80's :)

        • That'd be in one of your files

          if those are not there, then that's not the cause. Make sure you've installed all available updates, and if you're using a library, make sure you meet all requirements.

  • Chayim

    You don't have to reinstall Visual Studio, Open the installer that came with installing Visual Studio and click Modify and add C++ or any workload you want to add.

  • Mabel


    1 #include <iostream>
    3 int main()
    4 {
    5       std::cout << "Hello, world!";
    6     return 0;
    7 }
    1>------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------
    1>HelloWorld.vcxproj -> c:\users\alex\documents\visual studio 2017\Projects\HelloWorld\Debug\HelloWorld.exe
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========  

    1>------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------
    1>HelloWorld.vcxproj -> C:\Users\User\source\repos\HelloWorld\Debug\HelloWorld.exe
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
    Hello, world!
    Press any key to close this window . . .

    Hello, world!
    C:\Users\User\source\repos\HelloWorld\Debug\HelloWorld.exe (process 3964) exited with code 0.
    Press any key to close this window . . .

    My results in comparison to the expected results are just a tad different. Is this wright or wrong?

  • aden

    i read the tutorials early 2017 learn alot and now i come back to learn more ...thank you very much

  • Xoup

    Hey Alex (or nascar, lol), I'm a fairly new programmer (about a year) and have no experience in any C languages so sorry if this is a noobish question. Anyway I am using Xcode (on OSX) and was wondering what the path is for compiling and running with Xcode is. This is what I have done so far (and my results): After wrighting

    into the pre-made file "main.cpp" I went to: Product > Build then, once I received the "build complete popup." I went back to Product and from the dropdown selected Run. Now at the bottom of my window a popup saying "Hello world! The program ended with exit code: 0" Is this what I should be doing/getting in return? Thanks in advance for any help, Flynn.

  • Dear Teacher,
    Please let me say you an inconsistency.
    In "Creating a project in Visual Studio 2019" section, project name is "Project1", the default name.
    In "Creating a project in Visual Studio 2017 or older" section, project name is "HellowWorld" suggested by you.
    In both examples .cpp File's name should be as project's. But in the image of Visual Studio instance (in section "Visual Studio Solution Explorer") .cpp File name is "ConsoleApplication1.cpp", the default name for a "Console App" project. Regards.

  • Steve

    Hi, I started a new Project, added a new file, built it, started without degugging and got the "hello world! output. What is going on and how do I fix this? Probably something simple.

    Regards, Steve

    • Alex

      What are you trying to fix? This sounds like the desired outcome.

      • Steve

        Sorry, I am experimenting with cout. simply trying to display "4".

        // Introduction to iostream

        #include iostream // for std::cout

        int main()
            std::cout << 4; // print 4 to console

            return 0;

        I 'build' this successfully, but when I 'start without debugging' "Hello world!" is the output.
        I will be more explicit in my questions in the future.

        • Alex

          It sounds like your project is either not actually building, or it's building but something is going wrong where it's not able to output the executable.

          If you're running antivirus or anti-malware, try disabling them temporarily and see if that fixes the issue. You can also try manually deleting the old executable file that is generating the "Hello world!" output and then rebuilding. That may provide a clue.

          If neither of those work, can you show me what your compiler is outputting when you do a compile of the above program?

          • Steve

            I figured it out. Basic newby error. Sorry to bother u.

          • Paul

            Sorry to butt in Alex, but having learned some stuff from you I have to point out that your answer is somewhat baffling! @Steve just missed out the < > in #include iostream, line 2 of his code. As he say's a newbie error and easily spotted.

            • Alex

              Possibly, but I was taking him at his word when he said his program was building successfully. Without the angled brackets around iostream, the program wouldn't compile.

  • Dear Teacher,

    Please forgive me for the above message. "Desktop Application (.exe)" leads to unresolved errors, so "Console Application (.exe)" should be selected.

    With regards and friendship
    Georges Theodosiou

    • Alex

      Hey Georges, I updated this lesson pretty significantly after you made your comment, and I think your suggestion has been incorporated. Can you let me know if you still see anything outstanding?


  • Dear Teacher,

    Please let me ask you about Visual Studio 2019. In wizard "Configure your new project" below text fields it is written next to a small box: "Place solution and project in the same directory". What does it mean, and what is its effect in practice?

    With regards and friendship
    Georges Theodosiou

    • Alex

      By default, VS2019 places your code files under //.
      If you check that checkbox, it will create your code files under / (no solution subfolder is created).

      This will have no impact on your code -- it's just an organizational thing.

      • Dear Teacher,

        Please let me say you my understanding. Suppose project name is "HelloWorld".
        1. If I do not check box, V.S. creates two folders, both with name "HelloWorld", one inside other. Including folder is the solution-folder, and included (subfolder) is the project-folder.
        2. If I do check box, it creates project-folder only.
        Is that correct?

        With regards and friendship
        Georges Theodosiou

  • Adam

    So I'm just starting to learn Visual Studio with C++ and am writing my first Hello World program. When I run the program, I get the right output but the program also lists a directory path. I was wondering how I get rid of this directory path so the program just shows the Hello World.

    • Alex

      That's a Visual Studio specific thing that it does when it holds the console window open for you rather than closing it immediately. I'm not sure if it's possible to disable.

  • Teo

    Hello, i'm working with Dev-C++ and i can't find Win32 Console Application

  • Liz

    Using MS Visual Studio 2017. I saw the following when I ran the HelloWorld program:

    Hello, world!
    c:\users\liz\source\repos\HelloWorld\Debug\HelloWorld.exe (process 10088) exited with code 0.
    Press any key to close this window . . .

    Any idea why my program has that extra middle line in it?

    • Alex

      Your compiler is providing some additional debugging related information (as well as the "Press any key to close this window..."). You can ignore this.

  • Anonymous

    >Visual Studio will not pause at the end of a console application if it is run with debugging (Debug Menu > Start Debugging). If you want it to pause, you can either use the code solution above, or run your program without debugging (Debug Menu > Start Without Debugging).

    Using the Windows Desktop Wizard in VS2017 will lead to a project with all configurations at Properties > Linker > System > Subsystem set to "/SUBSYSTEM:CONSOLE" which will cause it to pause in any configuration with or without debugging. Setting that option in an empty project should be good enough to achieve the same result.

  • Meesh

    I heard a lot of good things about VS Code so I installed it on my laptop (Linux) instead of Code::Blocks. However it is very different than using it on Windows, and as a beginner I’m afraid there are steps that I might have missed. Would it be possible for you to include a section on how to use VS Code on Linux?

    • Alex

      VS Code doesn't come with a compiler integrated. As such, it's a little more complex of an installation than I like to recommend to new folks. If you want to chase down how to install it with a compiler elsewhere (e.g., by all means, use it. But I won't recommend it here.

    • Hi Meesh!

      It seems you're confusing VS (Visual Studio) with VScode (Visual Studio Code).
      VS is an IDE whereas VScode is a feature-rich, extensible text editor.
      I highly recommend VScode, it's a great, lightweight editor.

      You can follow these instructions
      Don't worry about the length of that article, you only need the content up to "Debugging your code"
      There's only one thing that's not good about that article, and that's invoking the compiler directly. You should use CMake (You can start with using the compiler directly, but you should switch to CMake at some point).

  • Phil

    "sudo apt-get install build-essential"

    This command is specific to Debian and its derivatives. Other Linux distributions easily name their build package with other names. For instance, Arch Linux calls it 'base-devel', and would install it with 'pacman -Syu base-devel'. Perhaps consider making a note of this.

  • Viridian

    Just a small typo on the last sentence of first paragraph:
    "When you choose to compile your program, *the* all of the .cpp files in the project will get compiled and linked".

  • Hi I made it
    everything worked smoothly although it reported an error first but I took a deep breath,analyze this error and got rid of it.
    I am happy to learn here, Alex you be too much.

  • Kushal

    What does precompiled header means ? Why did you turn it off ?How does it affect the build and compile operation ?


    • Alex

      Precompiled headers are an option that, if used correctly, can speed up compilation times for large projects with lots of files. Since precompiled header support varies by compiler, and our examples are fairly small, we turn them off for simplicity. This helps keep the examples shorter, and reduces the number of potential things that can go wrong when trying to learn.

      But for large programs, precompiled headers can be very useful. I've added an item to my to-do to come back to precompiled headers in the future and talk about them some more.

  • Kamal

    Hello, till yesterday ide was working good but today I start getting a problem console closed even before checking the output, I also included stdafx or pch header file but showing error “cannot open source file” and “cannot open include file pch.h: no such file or dictionary”

    Now what should I do

  • Tristan

    i get this error: Object reference not set to an instance of an object. I haven't made any typo, I rechecked 5 times

  • Louis Cloete

    @Alex, in section "If your program runs but the window flashes and closes immediately", you have:

    Should be:

  • GG

    on the top of this page : the author wrote: "new programs within our Integrated Desktop Environment (IDE)", this is incorrect, IDE stands for Integrated development environment.

    Also, it would be nice to have navigation arrows at the top as well, scrolling to the bottom to go from page to page each time is not very ergonomic

    Other that these ......This course is pretty amazing !!!

    • Alex

      Thanks for pointing out the typo.

      I figured most users would read the lesson and then navigate, not navigate right off the bat. How are you navigating the site in such a way that a top-nav to adjacent lessons would be useful? Thanks!

      • GG

        Top navigation is very useful when searching  prior lessons for forgotten bits which often relate to one's current lesson or confusion...

        True learning requires retaining informations which require repeat reading and checking things few times

        Your entire C++ course is particularly well fitted and conducive to such type of learning behaviors patterns, as everything is concise yet comprehensive and all info must be retained.

        Put yourself into a beginner's mindset (which I know you did writing these great lessons and this is why people love it so much).   This is not like linear story book that only goes forward... people get confused,  forget bits, need to check things again, you also make reference to past lessons as well.
        Going back to the table of content is one more click plus a long scroll to the bottom and does not show you anything but a title.
        Likewise, getting to previous page button requires the same scrolling down, if this happens to be the wrong page, another scroll down is required to get to the previous page  and so on..  
        This can be done much more ergonomically with top navigation.
        Hence, top navigation is always great to have and to scan back thru stuff swiftly or ( even scan forward to check what's coming next for motivation and curiosity....)

        Also, Imagine a very tall book that you could only flip thru from the bottom of each page!

        • Alex

          Thanks for the context. What you say makes sense. I'll have to figure out a good way to do this. I appreciate the thoughts and feedback.

          • Vitaliy Sh.

            Why not simply anchor <h1> to navigation <table id="a">? Mostly DRY... i've that in my local p. use "lcpp copy".


  • Addison

    I have a Mac and I used XCode 10.1. A helpful video on Youtube is titled "How to Create First C++ Hello World Project using Xcode Mac OS X."

  • Rob Rodgers


    I got this as the output, instead of the clean version you posted.  Is that something I can avoid?  I'm using VIsualStudio 2017 Community, version 15.9.4.



    Hello, world!

    C:\Users\rrodgers\source\repos\HelloWorld3\Debug\HelloWorld3.exe (process 25180) exited with code 0.
    Press any key to close this window . . .

    • Running without a debugger should not keep the console open. See the yellow "For Visual Studio users" box.

      • Aurme

        I have the same display as Rob Rodgers, but with version 15.9.5.

        I am unsure how you're answer addressed the question. This prompt is given when not in debug mode, either by using ctr + f5, or when using Debug > Start Without Debugging.

        I see the pathway shows Debug in it, even when we do this, however, could you shed any more light please?

        It still shows the pathway after either running without debugging, or using the above code.

        • Alex

          You're seeing this in the console window? Not sure -- it's just Visual Studio telling you what the exit code was, but I'm not sure where this is configured and a google search didn't turn anything up about how to enable/disable it.

    • Emil Blom

      Yes, i got that too. If you look closely at the picture, it has that exact text there .

  • marrtin

    Is it okay/advantages to set the 'Solution Platform' in Visual Studio to x64 on an x64-machine?

  • Ole Lop

    Hi, what are the .sln and .vcxproj files and which one should I open?

Leave a Comment

Put all code inside code tags: [code]your code here[/code]