H
Hapa
Hello all,
we are using MSXML.dll version1 (VC++6.0) and we are trying to write into
the processing instruction node some more text to be confirm to our
customers specification.
CComBSTR PITarget = ("xml");
CComBSTR PITarget1 = ("version=\"1.0\" encoding=\"UTF-8\"");
V_I4(&NodeType) = MSXML::NODE_PROCESSING_INSTRUCTION;
CVCXMLDOMNodePtr pProcInstr=NULL;
//case 1:
HRESULT hr = m_pXMLDocumentNode->createNode(NodeType, PITarget, PITarget1,
&pProcInstr)
->>hr == 1???? and pProcInstr=0xcccccc?
//case 2:
HRESULT hr = m_pXMLDocumentNode->createNode(NodeType, PITarget, NULL,
&pProcInstr)
->>hr == 0 and pProcInstr=valid pointer
So the Node could not be created in case PITarget1 points to a string
object!
What is wrong with case 1?
Thanks
hapa.
we are using MSXML.dll version1 (VC++6.0) and we are trying to write into
the processing instruction node some more text to be confirm to our
customers specification.
CComBSTR PITarget = ("xml");
CComBSTR PITarget1 = ("version=\"1.0\" encoding=\"UTF-8\"");
V_I4(&NodeType) = MSXML::NODE_PROCESSING_INSTRUCTION;
CVCXMLDOMNodePtr pProcInstr=NULL;
//case 1:
HRESULT hr = m_pXMLDocumentNode->createNode(NodeType, PITarget, PITarget1,
&pProcInstr)
->>hr == 1???? and pProcInstr=0xcccccc?
//case 2:
HRESULT hr = m_pXMLDocumentNode->createNode(NodeType, PITarget, NULL,
&pProcInstr)
->>hr == 0 and pProcInstr=valid pointer
So the Node could not be created in case PITarget1 points to a string
object!
What is wrong with case 1?
Thanks
hapa.