Disable warning [modified]
-
Hi all :) I have a VS2005 MSC project, consisting of many classes, but when I compile I get many warnings(in different .cpp files) of type : warning C4996: wcscpy was declared depreciated c:\....cpp How to disable this warning, for whole project ? thank you. -- modified at 7:52 Wednesday 31st May, 2006
-
Hi all :) I have a VS2005 MSC project, consisting of many classes, but when I compile I get many warnings(in different .cpp files) of type : warning C4996: wcscpy was declared depreciated c:\....cpp How to disable this warning, for whole project ? thank you. -- modified at 7:52 Wednesday 31st May, 2006
Use #pragma to enable or disable the warnings. Chk this http://msdn2.microsoft.com/en-us/library/zyhb0b82.aspx[^] Appu.. "If you judge people, you have no time to love them."
-
Hi all :) I have a VS2005 MSC project, consisting of many classes, but when I compile I get many warnings(in different .cpp files) of type : warning C4996: wcscpy was declared depreciated c:\....cpp How to disable this warning, for whole project ? thank you. -- modified at 7:52 Wednesday 31st May, 2006
In your stdafx.h file, add the following line:
#pragma warning( disable : 4996 )
Cédric Moonen Software developer
Charting control -
Hi all :) I have a VS2005 MSC project, consisting of many classes, but when I compile I get many warnings(in different .cpp files) of type : warning C4996: wcscpy was declared depreciated c:\....cpp How to disable this warning, for whole project ? thank you. -- modified at 7:52 Wednesday 31st May, 2006
#pragma warning(disable:4100)
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Hi all :) I have a VS2005 MSC project, consisting of many classes, but when I compile I get many warnings(in different .cpp files) of type : warning C4996: wcscpy was declared depreciated c:\....cpp How to disable this warning, for whole project ? thank you. -- modified at 7:52 Wednesday 31st May, 2006
By using its replacement...? :) Peace! -=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!) -
Hi all :) I have a VS2005 MSC project, consisting of many classes, but when I compile I get many warnings(in different .cpp files) of type : warning C4996: wcscpy was declared depreciated c:\....cpp How to disable this warning, for whole project ? thank you. -- modified at 7:52 Wednesday 31st May, 2006
-
it is so easy question,i am very glad to answer it add "#pragma warning(disabled:4996)" in the head of header file and then the warning informaion will disappear. echozeng ----->rose rose i love you
i'm not going to blame you because (and only because) you're new to this forum. BTW, you should avoid posting an answer if it has already been answered (especially if you don't provide much useful infos)... the
#pragma
solution was even quoted more than twice already, so read the other answers before replying ;)
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]