E
Eric Kaplan
why calling PostSoapRequest will crash the program?
should I pass string* for start and end?
int post_soap_request(string start, string end)
{
string request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ start + end;
const char* REQUEST_BODY = request.c_str();
ne_set_request_body_buffer(req, REQUEST_BODY,
strlen(REQUEST_BODY));
// some more code
return 0;
}
HRESULT PostSoapRequest(string start, string end) {
return (post_soap_request(start, end) == 0) ? S_OK : E_FAIL;
}
should I pass string* for start and end?
int post_soap_request(string start, string end)
{
string request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ start + end;
const char* REQUEST_BODY = request.c_str();
ne_set_request_body_buffer(req, REQUEST_BODY,
strlen(REQUEST_BODY));
// some more code
return 0;
}
HRESULT PostSoapRequest(string start, string end) {
return (post_soap_request(start, end) == 0) ? S_OK : E_FAIL;
}