- You can either alt+F7 or right mouse click your project and select properties
- In your project property select configfuration properties/C/C++/processor.
- In the processor click beside the preprocessor definitions and select Edit.
- Copy and paste _CRT_SECURE_NO_WARNINGS into it and click OK.
- And apply the changes.