#include <msxml.h>
IXMLHttpRequest* GetXMLHTTP() {
IXMLHttpRequest* request;
CoCreateInstance(CLSID_XMLHTTPRequest, NULL, CLSCTX_INPROC, IID_IXMLHttpRequest, reinterpret_cast<void**>(&request));
return request;
}
转载于:https://www.cnblogs.com/yuanxiaoping_21cn_com/archive/2008/10/27/1320156.html