install visual studio community version 2017 - dr. tom...

14
Dr. Tom Hicks Install Visual Studio Community Version 2017 1 | P a g e Install Visual Studio Community Version 2017 1] Navigate your browser to https://www.visualstudio.com/ 2] Hold down the Download Visual Studio button Select Community 2017

Upload: lamkhanh

Post on 20-Mar-2019

240 views

Category:

Documents


0 download

TRANSCRIPT

Dr. Tom Hicks Install Visual Studio Community Version 2017 1 | P a g e

Install Visual Studio Community Version 2017

1] Navigate your browser to https://www.visualstudio.com/

2] Hold down the Download Visual Studio button Select Community 2017

Dr. Tom Hicks Install Visual Studio Community Version 2017 2 | P a g e

3] Enter your email if you like?

4] Save the file.

5] The download is just a starter file; it will not take long. Most of the major download will occur

during the install.

6] Open your downloads folder. Using the mouse, double-click on the installer.

7] Select Yes

Dr. Tom Hicks Install Visual Studio Community Version 2017 3 | P a g e

8] Read more if you like. Select Continue.

9] It is certainly up to you, but I would install absolutely everything. Many of you will use Visual

Studio in Algorithms, Software Engineering, Database, Networking, Sr. Project I & II, etc.

Dr. Tom Hicks Install Visual Studio Community Version 2017 4 | P a g e

10] Push the button to Install.button (the bottom right).

11] Now is the time to wait on the download. Go do something else for a while.

Dr. Tom Hicks Install Visual Studio Community Version 2017 5 | P a g e

12] My setup was complete; the warning indicated that I needed to do a restart. I did.

Start Menu

1] You will see a Visual Studio 2017 folder. Inside is an icon for the Visual Studio 2017

(Highlighted in yellow below). I encourage you to right-mouse click on the icon and pin it to

both your task bar and your start menu.

Dr. Tom Hicks Install Visual Studio Community Version 2017 6 | P a g e

Project Folder

1] http://carme.cs.trinity.edu/thicks/2320/ProjectTemplates/ Download a copy of the Project-2017

folder.

2] Some of us will have multiple versions of Visual Studio on our systems. We want to make sure

that we use the most recent version for all of our labs. If we do not, we will have constant

conversions occurring and this can get messy.

3] Right-Mouse click on Project.vcxproj Select Open With Select Visual Studio 2017.

Many of you might want to select the option to always open with Visual Studio 2017.

4] Sign in if you like? I generally choose not to do so. This first time start up takes a while. It will

be much faster the second time you start the application.

Dr. Tom Hicks Install Visual Studio Community Version 2017 7 | P a g e

5] Choose the color scheme you like. I generally leave mine blue.

5] Your initial setup will be something like the following. You can configure your windows almost

any way you like.

Dr. Tom Hicks Install Visual Studio Community Version 2017 8 | P a g e

6] I use Visual Studio for a lot of different things. I have found it most convenient to have the

Server Explorer window, the Properties window, and the Toolbox window mounted to the left.

You will find a format that you prefer.

You can also open Visual Studio 2017 and then open the project.

Dr. Tom Hicks Install Visual Studio Community Version 2017 9 | P a g e

7] Using the mouse, double click on Main.cpp (in the Solution Explorer Window to the left); this

will load the template window that I have created into the work area on the left you will be

able to view and edit this file.

Dr. Tom Hicks Install Visual Studio Community Version 2017 10 | P a g e

8] My students will be asked to include a nicely boxed comment at the top of each file. I would

encourage them to update the “Written By” to include their name. I would encourage them to

update the environment if not using Windows 10. I hope that student will prepare labs that are

documented well enough to share with future employers.

9] My students learn about .hpp and .cpp files as we go through data abstractions. I have

prepared a Utilities.cpp and Utilities.hpp; they include some simple functions that will make

navigating data abstractions a bit easier. Thy also include examples of how you might organize

functions.

10] The main function includes a simple splash screen. Add your name to update the Written By.

Dr. Tom Hicks Install Visual Studio Community Version 2017 11 | P a g e

11] There are several ways to compile the program. Ctrl+F5? Hold down the Debug Menu

Select Start Without Debugging, etc..

11] Check the checkbox and push the button that says Yes.

Dr. Tom Hicks Install Visual Studio Community Version 2017 12 | P a g e

12] The output window will reflect whether, or not, the compile was successful.

13] The compile should be successful – at least until you make changes in the code..

Dr. Tom Hicks Install Visual Studio Community Version 2017 13 | P a g e

Hello World

1] Insert a line for our traditional Hello World Program.

2] Compile and Execute your Program.

Intentional Error

1] Remove the ) see below compile and execute

Dr. Tom Hicks Install Visual Studio Community Version 2017 14 | P a g e

2] Note that it tells us that it expected a ‘)’

3] You might have multiple errors. If you double click on the error in the error list, it will

automatically take you to the line near the problem. See the Green bar and cursor.

4] Had we looked at the code, we could have noticed the red line below the semicolon; this is an

indication of a problem that we should have corrected this line before compilation.

5] You are welcome to learn to use the debugger, but this will not be a portion of the class. Refer

to youtube.com