1. WINVER not defined. Defaulting to 0x0600 (Windows Vista)
如果没有定义WINVER,默认的支持操作系统版本为Vista,可以在工程设置中增加WINVER=0x500;_WIN32_WINNT=0x500; 定义支持的操作系统版本为Win2000。
2. warning C4996: 'strcpy': This function or variable may be unsafe.
C4996的警告是针对C语言中不安全的字符串函数提出的,可以在工程设置中增加宏_CRT_SECURE_NO_WARNINGS来取消这一类的警告。
3. warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa.
根据ISO C++标准,itoa应当为_itoa。
类似的警告有:
warning C4996: 'strupr': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strupr
warning C4996: 'strlwr': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strlwr
4. warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored
VC9的连接器不再支持.def文件中的DESCRIPTION。
5. warning C4244: '=' : conversion from '__time64_t' to 'long', possible loss of data
CTime:

本文介绍了在将VC6工程转换到VC9过程中遇到的典型警告及其解决方案,包括未定义的WINVER警告、C4996不安全函数警告、连接器对DESCRIPTION的支持问题、数据类型转换警告以及MFC函数的过时警告等。

3332

被折叠的 条评论
为什么被折叠?



