Creating a project from the template

Creating a new project is now extremely easy. Just follow these straightforward steps in Visual Studio:

  1. Select File | New Project from the main menu.
  2. Make sure that Visual C++ is selected in the left-hand menu and then select HelloSFML from the list of presented options. This next screenshot should make this clear.

    Creating a project from the template

  3. In the Name: field, type Timber and also make sure that the Create directory for solution option is checked. Now click OK.
  4. Now we need to copy the SFML .dll files into the main project directory. My main project directory is D:Visual Studio StuffProjectsTimberTimber. It was created by Visual Studio in the previous step. If you put your Projects folder somewhere else, then perform this step there instead. The files we need to copy into the project folder are located in your SFMLin folder. Open a window for each of the two locations and highlight the required files as shown in the next screenshot on the left.

    Creating a project from the template

  5. Now copy and paste the highlighted files into the project folder on the right of the previous screenshot.

The project is now set up and ready to go. You will be able to see the screen shown in this next screenshot. I have annotated the screenshot so you can start to familiarize yourself with Visual Studio. We will revisit all these areas, and others, soon.

Creating a project from the template

Your layout might look slightly different from the screenshot because the windows of Visual Studio, like most applications, are customizable. Take the time to locate the Solution Explorer window on the right and adjust it to make its contents nice and clear, such as they are in the previous screenshot.

We will be back here really soon to start coding.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.51.103