简体   繁体   English

gSOAP 2.8.30与VS6 C ++的兼容性

[英]gSOAP 2.8.30 compatibility with VS6 C++

I try to compile my window application with gSOAP 2.8.30 but i found an error which is 我尝试使用gSOAP 2.8.30编译我的窗口应用程序,但发现一个错误

wctomb_s undeclared identifier wctomb_s未声明的标识符

So i just wandering if the latest gSOAP is not compatible with the VC6++ since this error come from stdsoap2.cpp. 所以我只是在徘徊,如果最新的gSOAP与VC6 ++不兼容,因为此错误来自stdsoap2.cpp。 Before this i'm using gSOAP 2.8.6 is working fine. 在此之前,我正在使用gSOAP 2.8.6正常工作。

VS6 C++ does not support wctomb_s (the recommended safer version of wctomb ). VS6 C ++不支持wctomb_s (建议的更安全的wctomb版本)。 Upgrade to a newer VS C++ release or update the code in stdsoap2.cpp function soap_string_in by replacing: 升级到较新的VS C ++版本,或通过替换以下内容来更新stdsoap2.cpp函数soap_string_in的代码:

#ifdef WIN32
        m = 0;
        wctomb_s(&m, buf, sizeof(buf), (wchar_t)(c & 0x7FFFFFFF));
#else
        m = wctomb(buf, (wchar_t)(c & 0x7FFFFFFF));
#endif  

with: 与:

        m = wctomb(buf, (wchar_t)(c & 0x7FFFFFFF));

at both of the two locations where wctomb_s is used. 在使用wctomb_s的两个位置上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM