Create a new project: press Ctrl + Shift + N, Select Win32 and then console application. Enter a name for your program and press "OK" button. Then, press "Next". On the next screen, check "Empty project" check box and press finish. Lastly, right click "source" folder in solution explorer, press add existing file, and add your cpp file.