c++ - soap_new() 和soap_copy() 有什么区别?

标签 c++ c web-services gsoap

有什么区别:

thread_envs[i] = soap_copy(&env);

thread_envs[i] = soap_new();

我们应该使用其中之一还是两者都使用?

最佳答案

来自文档:

结构soap *soap_new()

Allocates, initializes, and returns a pointer to a runtime environment

结构体soap *soap_copy(结构体soap *soap)

Allocates a new runtime environment and copies contents of the environment such that the new environment does not share any data with the original environment

关于c++ - soap_new() 和soap_copy() 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1958618/

相关文章:

c++ - 无法将参数 3 从 'const QGraphicsItem *' 转换为 'const QObject *' ,即 this 指针,对象是 QGraphicsObject 的子类

c++ - OpenCV 程序运行时错误

android - C# Rest Web 服务和 Android 客户端

web-services - Soap WSDL ComplexType 被发布为错误的参数类型

java - 什么是 org.glassfish.webservices.monitoring.WebServiceTesterServlet?

c++ - 将成员函数作为参数传递给其他成员函数 (C++ 11 <function>)

C++函数调用带类型指针,参数混淆: incomplete type is not allowed

c++ - 在 Visual Studio C++ 6.0 中使用模板函数

c - 搜索/打印数组中的特定元素

我们可以指望 C 结构表现良好的格式吗?