Zebra0.com

cpp classes

If the program will not compile in Visual Studio you can try the following:

  1. Right-click on the project name under "Solution Explorer" and select "Properties"
  2. 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.
  3. In the node view on the left of the properties window, go to Configuration Properties > C/C++ > Preprocessor.
  4. Click the Preprocessor Definitions line, and click on the down icon to the right of it.
  5. Select Edit from the menu that appears
  6. In the box at the very top of the Preprocessor Definitions window, add the text: _CRT_SECURE_NO_WARNINGS
  7. Click OK to close the Preprocessor Definitions window, then click OK to close the Properties window.

Thanks Frank!

End of lesson, Next lesson: