You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by St...@gmx.net on 2002/10/18 16:43:58 UTC
XMLString::transcode
Hi all,
I am trying to get familiar with Xerces for C++ and have the following
problem:
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
int main(int argc, char* argv[])
{
XMLCh* tempStr[100];
XMLString::transcode ("Range", tempStr, 99);
DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation
(tempStr, 0);
return 0;
}
I am working on W2K / VC6 / Xerces 2.0 and VC says:
error C2665: 'transcode' : none of the 4 overloads can convert parameter 1
from type 'char [6]'
error C2660: 'getDOMImplementation' : function does not take 2 parameters
I am afraid that this has been asked about a zillion times before, but I
have searched the usual FAQ and wasn't able to figure out what I am doing wrong.
Could someone help me ?!?
Thanks in advance,
CU Steve
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: XMLString::transcode
Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
> int main(int argc, char* argv[])
> {
> XMLCh* tempStr[100];
you have declared an array of 100 XMLCh pointers. I believe what you want
is an array of 100 XMLChs, like such
XMLCh tempStr[100];
>
> XMLString::transcode ("Range", tempStr, 99);
> DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation
> (tempStr, 0);
this method only taks 1 parameter. Remove the second and it will work
correctly.
> error C2665: 'transcode' : none of the 4 overloads can convert parameter 1
> from type 'char [6]'
that really is a crap error message :(
Gareth
--
Gareth Reakes, Head of Product Development
DecisionSoft Ltd. http://www.decisionsoft.com
Office: +44 (0) 1865 203192
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org