Hello,

IN my initialization code to check exception handling I am getting following error:

catch(const XMLException& toCatch)

��� {

������� cerr << "Error during Xerces-c Initialization.\n"

������������ << "Exception message:"

������������ << DOMString(toCatch.getMessage()) << endl;

�������

��� }

 

error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class DOMString

 

 

please let me know why..

-----Original Message-----
From: Murphy, James [mailto:[EMAIL PROTECTED]]
Sent
:
Thursday, February 07, 2002 11:59 AM
To: '[EMAIL PROTECTED]'
Subject: RE: BSTR

 

No - you have to translate one to the other using transcode to get the transcoded characters from a DOM string and create a BSTR from that.  BSTRs have to reside in a special memory heap.  Depending in your environment you might like ATL' s CComBSTR class to accept and managed the characters from transcode. 

 

DOMString domString("foo");

CComBSTR bstrString(domString.transcode())

 

Jim

-----Original Message-----  
From: Bavishi, Pankij [mailto:[EMAIL PROTECTED]]
Sent:
Thursday, February 07, 2002 11:20 AM
To: [EMAIL PROTECTED]
Subject: BSTR

 

Thanks guys for my former query.

Just want to confirm one more thing:

Is BSTR compatible with DOMString? Can I replace BSTR with DOMString if I am working on VC++?

 

Reply via email to