Disable deprecation warnings in VS2005

From http://exold.com/article/secret-switch-to-disable-deprecation

When using Visual Studio 2005, you’ll get compiler warnings if you use the unsafe versions of various string functions (strcpy, strcat, et al.). The docs say you can disable the warnings by defining _CRT_SECURE_NO_DEPRECATE. The docs lie. You need to define both _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.