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

Build errors for VC7 compile using Unicode charset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Build
    • None
    • Operating System: Windows XP
      Platform: PC
    • 16055

    Description

      When trying to compile with Unicode charset set and wchar_t enabled as a
      native type, the following create trouble:

      BinHTTPURLInputStream.cpp#164+: GetProcAddress does not take an LPTSTR, only
      LPCSTR; thus, the _T() needs to be stripped from the function name strings.

      Win32MsgLoader.cpp#174: ::FindResourceEx was hard-coded to single-char version
      (::FindResourceExA), should be universal ::FindResourceEx instead.

      VCPPDefs.hpp#169: consider typedef'ing wchar_t -> XMLCh, because
      using /Zc:wchar_t, wchar_t is a native, happily interoperating type in VC7.

      I'm not sure if this all actually makes sense, but I got a build to work
      rather nicely this way. Feel free to contact me via email.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rgiese@alumni.princeton.edu Robin Giese
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: