Hi and thanks for reading this post.
I'm using loadXML to get the XML from a web page and get_xml to assign the XML data to a BSTR variable. I am having difficulty displaying the BSTR variable in a CString edit control (m_editWB) on a form. It should be simple, but I can't figure out how to display the BSTR value in the edit control. Here's a snippet of my code:
Can anyone help me out?
FYI, I am using Visual C++ 6.0.
Thanks.
I'm using loadXML to get the XML from a web page and get_xml to assign the XML data to a BSTR variable. I am having difficulty displaying the BSTR variable in a CString edit control (m_editWB) on a form. It should be simple, but I can't figure out how to display the BSTR value in the edit control. Here's a snippet of my code:
Code:
...
pBody->get_innerText(&bStrAspText);
hr = pIXMLDOMDocument2->loadXML(bStrAspText, &sResult);
if SUCCEEDED(hr)
{
pIXMLDOMDocument2->get_xml( &bstrValue );
m_editWB = bstrValue;
UpdateData( false );
}
...
Can anyone help me out?
FYI, I am using Visual C++ 6.0.
Thanks.