Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-409

Win32 unicode build breaks due to wchar_t * passed to GetProcAddress()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: C++ 1.7.2
    • Fix Version/s: C++ 1.7.3
    • Component/s: C++
    • Labels:
      None
    • Environment:
      Visual Studio 2008, Win32 build, Use Unicode Character Set

      Description

      In file xsec/utils/winutils/XSECBinHTTPURIInputStream.cpp, the second argument to all calls to GetProcAddress() should not be wrapped in _T() because there is not a unicode version of GetProcAddress.

      GetProcAddress only takes a LPCSTR (const char*) for this argument and wrapping the argument with _T() in a unicode build causes this argument to be a const wchar_t *.

      Solution: remove _T() from all calls to GetProcAddress()

        Attachments

          Activity

            People

            • Assignee:
              scantor Scott Cantor
              Reporter:
              usrben Ben Sutcliffe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: