1、错误 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.
解决办法:打开项目属性,在预处理器定义里添加
_CRT_SECURE_NO_WARNINGS
2、错误 C4996 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings.
解决办法:同上界面,在预处理器定义里添加
_WINSOCK_DEPRECATED_NO_WARNINGS
3、错误 LNK2019 无法解析的外部符号 __imp_SkinH_Attach,函数 "protected: virtual int __cdecl CMFCApplication1Dlg::OnInitDialog(void)" (?OnInitDialog@CMFCApplication1Dlg@@MEAAHXZ) 中引用了该符号
4、警告 LNK4098 默认库“MSVCRT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
解决办法:在项目属性->配置属性->链接器->命令行中添加/NODEFAULTLIB:msvcrt.lib ,确定
5、错误(活动) E0304 没有与参数列表匹配的 重载函数 "AfxMessageBox" 实例
AfxMessageBox("sentence");
版本问题,修改为:
AfxMessageBox(TEXT("sentence"));