Home > Archive > VC Language > November 2005 > Compiler warnings...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Compiler warnings...
|
|
|
| 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
| |
| Igor Tandetnik 2005-11-26, 7:01 pm |
| "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
| |
| Scherbina Vladimir 2005-11-26, 7:01 pm |
| 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
>
>
|
|
|
|
|