许多函数、 成员函数,模板函数和 Visual Studio 中的库中的全局变量标记为弃用。Many functions, member functions, template functions, and global variables in the libraries in Visual Studio are marked as deprecated. 这些函数被弃用,因为它们可能具有不同的首选的名称,可能不安全或具有更加安全的变体,或可能已过时。These functions are deprecated because they may have a different preferred name, may be insecure or have a more secure variant, or may be obsolete. 许多弃用消息包括不推荐使用的函数或全局变量的建议的替换。Many deprecation messages include a suggested replacement for the deprecated function or global variable.
若要解决此问题,我们通常建议你更改代码以改为使用建议的更安全的或更新函数和全局变量。To fix this issue, we usually recommend you change your code to use the suggested safer or updated functions and global variables instead. 如果你需要使用现有的函数或变量,可移植性原因,可以关闭该警告。If you need to use the existing functions or variables for portability reasons, the warning can be turned off.
你可以通过将关闭的警告的代码的特定行警告杂注, #pragma warning(suppress : 4996)。You can turn off the warning for a specific line of code by using the warning pragma, #pragma warning(suppress : 4996). 你还可以启用警告文件中使用警告杂注, #pragma warning(disable : 4996)。You can also turn the warning off within a file by using the warning pragma, #pragma warning(disable : 4996).
你可以关闭该警告全局在命令行版本中使用/wd4996命令行选项。You can turn the warning off globally in command line builds by using the /wd4996 command line option.
若要关闭的警告的 Visual Studio IDE 中的整个项目:To turn off the warning for an entire project in the Visual Studio IDE:
打开属性页对话框为你的项目。Open the Property Pages dialog for your project. 有关如何使用属性页对话框的信息,请参阅属性页。For information on how to use the Property Pages dialog, see Property Pages.
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-70587-4.html
那些炮弹难道真是在电视上让那些鼓吹的军事家的咸蛋与茶叶蛋吗
而是对他们抱有希望
钓鱼岛本身就是我国领土呀
必须大发