From: Benoît Barré (benoitbarre@free.fr)
Date: 24/06/2003 - 15:02
Pour commencer, j'ai fait une fOte de frappe : LPDISPpaCH -> LPDISPATCH
devrait être meilleur ;-)
Sinon, voir KB avec 316317.
En réponse à Fred Fehner <f.fehner@vikingsound.com>:
>
> Je compile avec #import "msxml4.dll".
>
>
> Les premieres :
>
> D:\Développement\msxml\msxml.cpp(203) : error C2146: syntax error :
> missing
> ';' before identifier 'lpDisp'
> D:\Développement\msxml\msxml.cpp(203) : error C2065: 'lpDisp' :
> undeclared
> identifier
> D:\Développement\msxml\msxml.cpp(203) : error C2065: 'aMediaNode' :
> undeclared identifier
> D:\Développement\msxml\msxml.cpp(203) : error C2228: left of
> '.selectNodes'
> must have class/struct/union type
> D:\Développement\msxml\msxml.cpp(204) : error C2259: 'IXMLDOMNodeList'
> :
> cannot instantiate abstract class due to following members:
> d:\développement\msxml\debug\msxml4.tlh(553) : see declaration
> of
> 'IXMLDOMNodeList'
> D:\Développement\msxml\msxml.cpp(204) : warning C4259: 'long __stdcall
> IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure
> virtual
> function was not defined
> d:\microsoft visual studio\vc98\include\unknwn.h(109) : see
> declaration of 'QueryInterface'
> D:\Développement\msxml\msxml.cpp(204) : warning C4259: 'unsigned long
> __stdcall IUnknown::AddRef(void)' : pure virtual function was not
> defined
> d:\microsoft visual studio\vc98\include\unknwn.h(113) : see
> declaration of 'AddRef'
> D:\Développement\msxml\msxml.cpp(204) : warning C4259: 'unsigned long
> __stdcall IUnknown::Release(void)' : pure virtual function was not
> defined
> d:\microsoft visual studio\vc98\include\unknwn.h(115) : see
> declaration of 'Release'
> D:\Développement\msxml\msxml.cpp(204) : warning C4259: 'long __stdcall
> IDispatch::GetTypeInfoCount(unsigned int *)' : pure virtual function was
> not
> defined
> d:\microsoft visual studio\vc98\include\oaidl.h(2697) : see
> declaration of 'GetTypeInfoCount'
> D:\Développement\msxml\msxml.cpp(204) : warning C4259: 'long __stdcall
> IDispatch::GetTypeInfo(unsigned int,unsigned long,struct ITypeInfo ** )'
> :
> pure virtual function was not defined
> d:\microsoft visual studio\vc98\include\oaidl.h(2700) : see
> declaration of 'GetTypeInfo'
>
>
>
> Engros visual C++ ne pige pas grand chose et je n'ai rien modifié à part
> le
> chemin.
>
> LPDISPpaCH lpDisp =
> aMediaNode.selectNodes("//morceau/song/song-suivante-possible");
> IXMLDOMNodeList aNodesList(lpDisp);
> CString result;
> for (int i=0; i < aNodesList.GetLength(); ++i)
> {
> lpDisp = aNodesList.GetItem(i);
> IXMLDOMNode aNode(lpDisp);
>
> result = (LPCSTR)point->selectSingleNode("/song/@n")->Gettext();
> cout <<result <<endl;
> // do what u want ...
> }// end for
>
> Tout cela est un peu obscur pour moi.
>
> De - Fre
> -----Message d'origine-----
> De : xml-tech-bounce@xmlfr.org [mailto:xml-tech-bounce@xmlfr.org]De la
> part
> de Benoît Barré
> Envoyé : mardi 24 juin 2003 16:25
> À : xml-tech@xmlfr.org
> Objet : [xml-tech] Re: Selectionner plusieurs noeuds et renvoyer un
> attribut
> par noeud
>
>
> En réponse à Fred Fehner <f.fehner@vikingsound.com>:
>
> >
> > Ca ne marche pas. Ou alors j'ai pas les bons headers et links.
> >
> > Que faut il rajouter ici ?
> >
> > De - Fre
>
>
> Message qq peu succint : cad ?
>
> Essayer de compiler avec #import "msxml3.dll".
>
> bB
>
>
> PS: Ca fait un moment que je ne touche plus au C++...
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|