matman13
2006-08-10 18:55:01 UTC
I have an MFC application that I uplifted to Visual Studio 2005 a couple of
months ago. As expected, there were warnings and errors that had to be dealt
with. One of the warnings, C4996, was addressed by putting the
_CRT_SECURE_NO_DEPRECATE macro in the project settings for each subproject of
the solution. That worked great.
Fast forward two months. Someone else has formally uplifted our MFC
application to Visual Studio 2005 (mine was just an exercise to see what was
involved). One of the subproject is encountering warnings again dealing with
C run-time functions being deprecated, such as strcpy. In his case, though,
he gets a C4996 warning AND a C4995 warning for each occurrence. Putting the
_CRT_SECURE_NO_DEPRECATE macro in the project settings only suppresses the
C4996 warning. The C4995 warning still exists.
Does anyone have an idea as to why this is? I cannot reproduce his problem
with my original uplifted project. But the .vcproj files for this particular
subproject are identical between his solution and mine. For the life of me,
I cannot figure out why he is seeing the C4495 warning and I NEVER did.
Any guidance is greatly appreciated. I would prefer to avoid using the
#pragma directive to turn off the warning, but I'm not sure that that's not
the only recourse at this point. Any gurus out there that can point me in
the right direction?
months ago. As expected, there were warnings and errors that had to be dealt
with. One of the warnings, C4996, was addressed by putting the
_CRT_SECURE_NO_DEPRECATE macro in the project settings for each subproject of
the solution. That worked great.
Fast forward two months. Someone else has formally uplifted our MFC
application to Visual Studio 2005 (mine was just an exercise to see what was
involved). One of the subproject is encountering warnings again dealing with
C run-time functions being deprecated, such as strcpy. In his case, though,
he gets a C4996 warning AND a C4995 warning for each occurrence. Putting the
_CRT_SECURE_NO_DEPRECATE macro in the project settings only suppresses the
C4996 warning. The C4995 warning still exists.
Does anyone have an idea as to why this is? I cannot reproduce his problem
with my original uplifted project. But the .vcproj files for this particular
subproject are identical between his solution and mine. For the life of me,
I cannot figure out why he is seeing the C4495 warning and I NEVER did.
Any guidance is greatly appreciated. I would prefer to avoid using the
#pragma directive to turn off the warning, but I'm not sure that that's not
the only recourse at this point. Any gurus out there that can point me in
the right direction?