What is the best way to disable the warnings generated via _CRT_SECURE_NO_DEPRECATE that allows them to be reinstated with ease and will work across Visual Stud
_CRT_SECURE_NO_DEPRECATE
You could disable the warnings temporarily in places where they appear by using
#pragma warning(push) #pragma warning(disable: warning-code) //4996 for _CRT_SECURE_NO_WARNINGS equivalent // deprecated code here #pragma warning(pop)
so you don't disable all warnings, which can be harmful at times.