
编译错误及其解决方案
东方猫
代码崇拜
展开
-
Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案
在VS 2012 中编译 C 语言项目,如果使用了 scanf 函数,编译时便会提示如下错误: error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS....原创 2018-11-07 14:45:28 · 451 阅读 · 0 评论 -
字符集问题(Unicode变为多字节即能解决)
严重性 代码 说明 项目 文件 行 禁止显示状态错误 C2664 “void ATL::CStringT<wchar_t,StrTraitMFC<wchar_t,ATL::ChTraitsCRT<wchar_t>>>::Format(UINT,...)”: 无法将参数 1 从“const char [3]”转换为...原创 2018-11-07 14:49:10 · 1202 阅读 · 0 评论