How to create a project in Microsoft Visual C++



  1. prepare the .h and .c/.cpp files
  2. select File from the top menu, then select New from the File menu
  3. click on the Projects tab in the New window, then pick Win32 Console Application for target type, type in a name for your project in the Project name field, and click on ok button

  4. click on the Finish button in the next window and then on ok button
  5. if the Workspace window is not shown, select View from the top menu and then select Workspace or click on the Workspace icon located on the Toolbar
  6. in the workspace window, click on the FileView
  7. click on the '+' sign to the left of your project name followed by the word files; 3 directory folders should be displayed: Source Files, Header Files, Resource Files
  8. place your mouse over the Source Files, then right click on the mouse and pick Add Files to Folder



  9. select the various files - .cpp or .c only
  10. place your mouse over the Header Files, then right click on the mouse and pick Add Files to Folder
  11. select the various files - .h only
  12. click on Compile icon or press Ctrl+F7 on your keaboard to compile your project
  13. execute your program by clicking on the Run icon (an exclamation mark) or by pressing Ctrl+F5