The error message itself already states two possible solutions. You could also google the error code or directly jump to the error help using F1 to find
this article[
^]
In short: inform yourself about MicroSofts reasons to introduce the new functions and deprecate the old ones, then decide whether you want to use them or not, and change your code accordingly, or use
_CRT_SECURE_NO_WARNINGS
.
If you go for the latter option, don't put the definition into your code, add it to your precompile settings. It's non-standard C++, so no point polluting your code with it...