语音 头文件 错误
sphelper.h
这个头文件很多warning和两个Error,有人说是头文件的顺序问题~但是我试了还是有错误
d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\spdebug.h(274) : warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\files\microsoft visual studio 8\vc\include\string.h(252) : 参见“wcscpy”的声明
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(89) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(150) : warning C4267: “return”: 从“size_t”转换到“unsigned int”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(169) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(226) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(227) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(334) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(769) : warning C4267: “初始化”: 从“size_t”转换到“const int”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(772) : warning C4267: “初始化”: 从“size_t”转换到“ULONG”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(778) : warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\files\microsoft visual studio 8\vc\include\string.h(252) : 参见“wcscpy”的声明
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(779) : warning C4996: 'wcscat': This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\files\microsoft visual studio 8\vc\include\string.h(245) : 参见“wcscat”的声明
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(780) : warning C4996: 'wcscat': This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\files\microsoft visual studio 8\vc\include\string.h(245) : 参见“wcscat”的声明
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(784) : warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\files\microsoft visual studio 8\vc\include\string.h(252) : 参见“wcscpy”的声明
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(920) : warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\files\microsoft visual studio 8\vc\include\string.h(252) : 参见“wcscpy”的声明
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(921) : warning C4996: 'wcscat': This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\files\microsoft visual studio 8\vc\include\string.h(245) : 参见“wcscat”的声明
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(2097) : warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\files\microsoft visual studio 8\vc\include\string.h(252) : 参见“wcscpy”的声明
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(2546) : warning C4267: “+=”: 从“size_t”转换到“ULONG”,可能丢失数据
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(2561) : error C2440: “初始化”: 无法从“CSpDynamicString”转换为“SPPHONEID *”
1> 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符
1>d:\files\microsoft visual studio 8\vc\platformsdk\speech\include\sphelper.h(2635) : error C2664: “wcslen”: 不能将参数 1 从“SPPHONEID *”转换为“const wchar_t *”
1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
我用的VS2005