Depreciated headers

warning C4996: 'vsprintf' was declared deprecated
see declaration of 'vsprintf'
Message: 'This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE.

>but why didn't (#define _CRT_SECURE_NO_DEPRECATE) work?
If I knew that I would have told you.

>I shouldn't have to do that #pragma for every error like this that I'm getting should I?
When you do this it turns off the warning completely, you'll never get it again. That's why you should be completely sure that the warning is nothing more than an eyesore and its presence hurts you by hiding legitimate information. Warning 4996 is an extremely rare exception. I've only disabled one warning in my entire career, and this is that warning.