|

楼主 |
发表于 2023-7-4 17:45:10
|
显示全部楼层
>D:\code\Project2\test.c(122,15): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\code\Project2\test.c(148,33): warning C4133: “函数”: 从“char *”到“LPCWSTR”的类型不兼容
1>D:\code\Project2\test.c(152,29): warning C4477: “sprintf”: 格式字符串“%s”需要类型“char *”的参数,但可变参数 2 拥有了类型“WCHAR *”
1>D:\code\Project2\test.c(152,29): message : 请考虑在格式字符串中使用“%ls”
1>D:\code\Project2\test.c(152,29): message : 请考虑在格式字符串中使用“%lls”
1>D:\code\Project2\test.c(152,29): message : 请考虑在格式字符串中使用“%Ls”
1>D:\code\Project2\test.c(152,29): message : 请考虑在格式字符串中使用“%ws”
1>D:\code\Project2\test.c(147,5): error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\code\Project2\test.c(148,33): error C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\code\Project2\test.c(152,13): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\code\Project2\test.c(167,33): warning C4133: “函数”: 从“char *”到“LPCWSTR”的类型不兼容
1>D:\code\Project2\test.c(175,23): warning C4133: “函数”: 从“WCHAR [260]”到“const char *”的类型不兼容
1>D:\code\Project2\test.c(175,53): warning C4133: “函数”: 从“WCHAR [260]”到“const char *”的类型不兼容
1>D:\code\Project2\test.c(180,30): warning C4477: “sprintf”: 格式字符串“%s”需要类型“char *”的参数,但可变参数 2 拥有了类型“WCHAR *”
1>D:\code\Project2\test.c(180,30): message : 请考虑在格式字符串中使用“%ls”
1>D:\code\Project2\test.c(180,30): message : 请考虑在格式字符串中使用“%lls”
1>D:\code\Project2\test.c(180,30): message : 请考虑在格式字符串中使用“%Ls”
1>D:\code\Project2\test.c(180,30): message : 请考虑在格式字符串中使用“%ws”
1>D:\code\Project2\test.c(166,5): error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\code\Project2\test.c(167,33): error C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>D:\code\Project2\test.c(180,13): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>已完成生成项目“Project2.vcxproj”的操作 - 失败。 |
|