![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Write Readed Values [Thread Next] Re: Write Readed ValuesTo: NULL Date: 3/1/2005 3:34:00 PM Ok, Thanks Works Fine ;) Regards Leo "liscerq" <liscerq@g...> wrote in message news:1109688820.992448.74420@z...... > Hi again, > > In fact the property: > pXMLNode->text; [sorry, before i mentioned it as a function] > and the function: > pXMLNode->get_text(&bstrText); > should work... so if in your program it doesn't I am lead to think that > there is a conflict with msxml versions... > > Issue 1: > ----------- > How do you include the msxml library in your project? > I would say you should do something like: > > //*** XML DOM Document ***// > #import "msxml4.dll" > using namespace MSXML2; > > Issue 2: > ----------- > I was now pasting your code into one project that i have and i got > errors like (for which i made a correction): > > line: > hr = pPlaylist->load(varFile, &bIsSuccessful); > error: > error C2660: 'load' : function does not take 2 parameters for the > line > correction: > bIsSuccessful = pPlaylist->load(varFile); > > > line: > hr = pPlaylist->getElementsByTagName(bstrName, &pXMLNodeList); > error: > error C2660: 'getElementsByTagName' : function does not take 2 > parameters > correction: > *pXMLNodeList = pPlaylist->getElementsByTagName(bstrName.m_str); > > So making the include i described in "Issue 1" and the corrections i > described in "Issue2" i got the project compiling. I would suggest you > to look for more information about compatibilities of msxml libraries > (what you have installed in your computer). > > One more hint that might be usefull: in Visual Studio, right click on > getElementsByTagName and select "Go to definition of > getElementsByTagName" and see which file is opened (for me is the > msxml4.dll file opened). > > Sorry but i can't find a better explanation. > Elisabete. > | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
