Visual Studio打印std::string

PrgString url = CHostApplication::GetInstance()->GetBaseUrl() + L"Login.userLogin&user_login=" + user + L"&user_pass=" + psd;
net::HttpRequest req;
req.method = L"GET";
req.url = url.GetString();
net::HttpResponse rsp;
net::SendRequest(req, 10 * 1000, rsp);
std::string response = rsp.GetData();
rapidjson::Document  doc;
if (doc.Parse<0>(response.c_str()).HasParseError()){
return;
}
rapidjson::Value   data;
data = doc["data"]["info"][0];


rapidjson::Value  id;
id = data["id"];


rapidjson::StringBuffer sbBuf;
rapidjson::Writer jWriter(sbBuf);
id.Accept(jWriter);
std::string strTemp = std::string(sbBuf.GetString());
//std::wstring_convert> myconv;
//std::wstring msg = myconv.from_bytes(id.GetString());
 
char buffer[100];
sprintf_s(buffer, "check it out: %s\n", strTemp.c_str());
OutputDebugStringA(buffer);

你可能感兴趣的:(Visual Studio打印std::string)