[BCX] Re: COM-XML translation question
"Andreas Hänsch"
Sat Feb 28 15:23:11 PST 2009
Wayne, this is the complete code example I wanted to compile:
DIM pXmlDoc AS OBJECT
DIM pPri AS IXMLDOMProcessingInstruction
DIM pNodeList AS IXMLDOMNodeList
DIM pItem AS IXMLDOMNode
Set pXmlDoc = CREATEOBJECT("Microsoft.XMLDOM")
pXmlDoc.async = FALSE
pXmlDoc.loadXML("<root><child/></root>")
pPri = pXmlDoc.createProcessingInstruction("xml", "version=""1.0""")
pNodeList = pXmlDoc.childNodes
pItem = pNodeList.item(0)
pXmlDoc.insertBefore pPri, pItem
The (first) error message from pellesC is still the same:
Operands of = have incompatible types 'IXMLDOMProcessingInstruction' and 'int'.
Do you have any ideas what I must change to compile this example?
Andreas
-------- Original-Nachricht --------
> Datum: Sat, 28 Feb 2009 03:48:30 -0000
> Von: "Wayne Halsdorf" <wmhalsdorf at WYwp7TKJvelsVklmIkvtuQen6-v6zeqJ42PzobKoK1ehSx89lSzG9LbTeJsUBjqXDBod1L9slDx5OA.yahoo.invalid>
> An: BCX at yahoogroups.com
> Betreff: [BCX] Re: COM-XML translation question
> --- In BCX at yahoogroups.com, "Andreas Hänsch" <andreas-haensch at ...> wrote:
> >
> > Hi all,
> > I am on experimenting with C++/VB-Code translation and have a problem.
> >
> > When I try to compile this line:
> > Instruct = xml.createProcessingInstruction("xml", "version=1.0")
> >
> > I get the error message from PellesC:
> > Operands of = have incompatible types 'IXMLDOMProcessingInstruction'
> and 'int'.
> >
> > What can I do to compile the above code line?
> >
> > Andreas
> >
> > --
> > Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL
> > für nur 17,95 ¿/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
> >
>
> You have Instruct dimmed as IXMLDOMProcessingInstruction
> when it should be an INT
>
>
--
Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 ¿/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
More information about the BCX
mailing list