[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: MS's secure CRT in Lua 5.2?
- From: Diman Todorov <diman@...>
- Date: Wed, 19 Jul 2006 23:15:12 +0200
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES and the
equivalent for _COUNT don't work for dynamically allocated buffers.
Or did you mean some other sort of #defines?
Eliminating deprecation warnings
There are several ways to eliminate deprecation warnings for the
older, less secure functions. The simplest is simply to define
_CRT_SECURE_NO_DEPRECATE or use the warning pragma. Either will
disable deprecation warnings, but of course the security issues that
caused the warnings still exist. It is far better to leave
deprecation warnings enabled and take advantage of the new CRT
that's what I tend to do :)