I writing some software that makes extensive use of ATL but the compiler is
coming up with alot of warningswhile compiling the ATL source code!

The warning are C4996 and C4995, they complain about certain functions being
deprecated.

The question is, is there some compiler option I can switch on to stop these
warnings or is it better to go and modify the ATL source and replace the
deprecated functions calls with their newer versions?

--
Best regards
Mark

Re: Compiler warnings... by Igor

Igor
Sat Nov 26 10:00:04 CST 2005

"Mark" <swozz_@hotmail.com> wrote in message
news:OZ4h%232p8FHA.2800@TK2MSFTNGP10.phx.gbl
> I writing some software that makes extensive use of ATL but the
> compiler is coming up with alot of warningswhile compiling the ATL
> source code!
> The warning are C4996 and C4995, they complain about certain
> functions being deprecated.
>
> The question is, is there some compiler option I can switch on to
> stop these warnings or is it better to go and modify the ATL source
> and replace the deprecated functions calls with their newer versions?

See http://msdn2.microsoft.com/en-us/library/ttcz0bys.aspx, particularly
the part about _ATL_SECURE_NO_DEPRECATE macro.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925



Re: Compiler warnings... by Scherbina

Scherbina
Sat Nov 26 16:10:17 CST 2005

In addition to Igor's post - to disable those warnings you can also use
#pragma warning(disable : 4996)#pragma warning(disable : 4995)--
Scherbina Vladimir

"Mark" <swozz_@hotmail.com> wrote in message
news:OZ4h%232p8FHA.2800@TK2MSFTNGP10.phx.gbl...
>I writing some software that makes extensive use of ATL but the compiler is
>coming up with alot of warningswhile compiling the ATL source code!
>
> The warning are C4996 and C4995, they complain about certain functions
> being deprecated.
>
> The question is, is there some compiler option I can switch on to stop
> these warnings or is it better to go and modify the ATL source and replace
> the deprecated functions calls with their newer versions?
>
> --
> Best regards
> Mark
>
>