If the program will not compile in Visual Studio you can try the following:
- Right-click on the project name under "Solution Explorer" and select "Properties"
- On the properties window that appears, at the very top, set Configuration to "All Configurations" and Platform to "All Platforms" -- this will save you some extra clicking.
- In the node view on the left of the properties window, go to Configuration Properties > C/C++ > Preprocessor.
- Click the Preprocessor Definitions line, and click on the down icon to the right of it.
- Select Edit from the menu that appears
- In the box at the very top of the Preprocessor Definitions window, add the text: _CRT_SECURE_NO_WARNINGS
- Click OK to close the Preprocessor Definitions window, then click OK to close the Properties window.
Thanks Frank!
End of lesson, Next lesson: