在VS高版本下,MFC中使用旧的C函数时会出现以下错误提示:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(90): note: 参见“strcat”的声明
1>ImageBatchProcess.cpp(86): 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.
通常可以通过在文件顶部添加#define _CRT_SECURE_NO_WARNINGS解决问题,但是在MFC中直接这样做是行不通的,需要将#define _CRT_SECURE_NO_WARNINGS放在stdafx.h的顶部