Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1449

Sample source code not compilable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • Documentation
    • None
    • Win2000, MS VC++ 6.0

    Description

      In the DOM Programming Guide under "Memory Management" there's some sample code that I think is wrong. Here's a piece of the code that's in the documentation:

      XMLCh* tempStr[100];
      XMLString::transcode("Range", tempStr, 99);

      The above doesn't compile on my machine. I think the "tempStr" array is declared incorrectly. It works when I use the following declaration:

      XMLCh tempStr[100];

      so without the asterisk , which actually makes more sense.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lzandman Leon Zandman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: