This tutorial is part of a Collection: 03. DirectX 11 - Braynzar Soft Tutorials
rate up
0
rate down
9246
views
bookmark
01. Setting Up in VS 2010

This is just a quick lesson on how to set up your environment in MS Visual Studio 2010.

780 downloads
This lesson will teach you how to setup Visual Studio 2010. First, start Visual Studio 2010. Then go to: File->New->Project On the Left side, under Installed Templates, go under Visual C++ and click on Win32. On the right side of the dialogue box, click on Win32 Project. At the bottom of the dialogue box, name your project and click "OK". +[http://www.braynzarsoft.net/image/100008][VS2010 Win32 Project] After you hit OK, this screen pops up. Click "Next" +[http://www.braynzarsoft.net/image/100009][Win32 App Wizard] Next is the Settings. Choose Windows Application and then Empty Project. After that click "Finish" +[http://www.braynzarsoft.net/image/100010][Choose Empty project] Now all you have to do is make a new source file. in the Solution Explorer, Right-Click on Source Files, then add, then New Item +[http://www.braynzarsoft.net/image/100011][Add Main Source File] In the dialogue that pops up, Under where it says Installed Templates, click on C++ File (.cpp). At the bottom, name the file "main.cpp", then click "Add". +[http://www.braynzarsoft.net/image/100012][Choose C++ File] Now you have an empty project ready to go. If you press F5 to compile, it will ask you to build it, say yes, and let it go. it will say there were errors so if you click "no", on the bottom you will see there was an error something like this: ****error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup **** Don't worry, thats just because there is nothing in your project. We will begin adding code in the next lesson. See you then!