Click here to Skip to main content
15,908,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need "measuring time" suggestion Pin
Curi0us_George23-May-04 19:35
Curi0us_George23-May-04 19:35 
GeneralRe: Need "measuring time" suggestion Pin
J.B.23-May-04 19:51
J.B.23-May-04 19:51 
Generalstring Pin
picasso223-May-04 7:21
picasso223-May-04 7:21 
GeneralRe: string Pin
Antti Keskinen23-May-04 7:37
Antti Keskinen23-May-04 7:37 
GeneralRe: string Pin
Ravi Bhavnani23-May-04 7:53
professionalRavi Bhavnani23-May-04 7:53 
GeneralRe: string Pin
Ravi Bhavnani23-May-04 7:52
professionalRavi Bhavnani23-May-04 7:52 
GeneralDownloading a customised version of an app from a website Pin
Chris Maunder23-May-04 6:00
cofounderChris Maunder23-May-04 6:00 
GeneralRe: Downloading a customised version of an app from a website Pin
Ravi Bhavnani23-May-04 8:00
professionalRavi Bhavnani23-May-04 8:00 
GeneralRe: Downloading a customised version of an app from a website Pin
Chris Maunder23-May-04 8:15
cofounderChris Maunder23-May-04 8:15 
GeneralRe: Downloading a customised version of an app from a website Pin
Ravi Bhavnani23-May-04 8:52
professionalRavi Bhavnani23-May-04 8:52 
GeneralRe: Downloading a customised version of an app from a website Pin
cmk23-May-04 11:00
cmk23-May-04 11:00 
GeneralRe: Downloading a customised version of an app from a website Pin
Russell Robinson23-May-04 12:30
Russell Robinson23-May-04 12:30 
General.NET version problem Pin
Nemok23-May-04 4:53
Nemok23-May-04 4:53 
QuestionHow do I Pin
KORCARI23-May-04 3:53
KORCARI23-May-04 3:53 
AnswerRe: How do I Pin
Ravi Bhavnani23-May-04 4:29
professionalRavi Bhavnani23-May-04 4:29 
GeneralShow Desktop Pin
Abin23-May-04 2:32
Abin23-May-04 2:32 
GeneralRe: Show Desktop Pin
User 665823-May-04 3:38
User 665823-May-04 3:38 
GeneralRe: Show Desktop Pin
Diddy26-May-04 2:36
Diddy26-May-04 2:36 
Generalskinned gui controls in directx Pin
Chooikw22-May-04 23:14
Chooikw22-May-04 23:14 
GeneralRe: skinned gui controls in directx Pin
Antti Keskinen23-May-04 0:23
Antti Keskinen23-May-04 0:23 
GeneralOfficeaddin IDTExtensibility2 Pin
shinay22-May-04 22:33
shinay22-May-04 22:33 
GeneralRe: Officeaddin IDTExtensibility2 Pin
shinay22-May-04 22:34
shinay22-May-04 22:34 
QuestionXML info from web 2 richtextbox ? Pin
MrXs22-May-04 21:30
MrXs22-May-04 21:30 
AnswerRe: XML info from web 2 richtextbox ? Pin
Andrew Quinn AUS24-May-04 0:59
Andrew Quinn AUS24-May-04 0:59 
Hi there,

Perhaps use IXMLHTTPRequest object?

e.g. on the button handler:

IXMLHTTPRequestPtr pXMLHTTPReq = NULL;
try
{
   pXMLHTTPReq.CreateInstance(__uuidof(XMLHTTP40));

   if (pXMLHTTPReq)
   {
      CString strURL = "my.url.com";
      pXMLHTTPReq->open("GET", (LPCTSTR)strURL, VARIANT_FALSE);
      pXMLHTTPReq->send();
      // if you are using DDX...
      m_strRichTextBox = (LPCTSTR)pXMLHTTPReq->responseText;
      UpdateData(FALSE);
      
      // otherwise just set the window text...
      //

      // or if you want to load into an XML Document to do post-processing...
      IXMLDOMDocument2Ptr pXMLDoc = NULL;
      pXMLDoc.CreateInstance(__uuidof(DOMDocument40));
      if (pXMLDoc)
      {
            if (pXMLDoc->loadXML(pXMLHTTPReq->responseText))
            {
                // post-processing here
            }
            else
            {
                // Failed to load the XML...
            }
      }
   }
}
catch(_com_error& e)
{
   TRACE1("Exception: %s", e.Description())
}


Any questions, just ask

Hope this helps,
Andy
GeneralHelp:CallBack function Pin
curiosity537422-May-04 21:01
curiosity537422-May-04 21:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.