> At 09:56 AM 10/06/2002 +0100, Gert van Spijker wrote: > >Here is a code fragment, that works well on my system, from my MSVC code > >that converts a nodes value to a MFC CString: > > > >char* pValue = XMLString::transcode( pNode->getNodeValue() ); > >CString Value = pValue; > >delete pValue; > > This code fragment isn't correct, since it should be using delete[] to free > the memory. If it works, you're lucky and relying on a "quirk" of the > platform you're using. ;)
You're right there of course. This is what you get after coding exculsively for Bill's platform for many years. Gert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
