"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

 Hi!

 I'm using your source code xerces 1.5 and I'd like to point two things:

 1- The file "src\util\NetAccessors\WinSock\BinHTTPURLInputStream.cpp"
does not compile using UNICODE

 if (_UNICODE) is defined then the statements
              gWSACleanup = (LPFN_WSACLEANUP) GetProcAddress(gWinsockLib,
 _T("WSACleanup"));
              gWSgethostbyname = (LPFN_GETHOSTBYNAME)
 GetProcAddress(gWinsockLib,_T("gethostbyname"));
              ...
 don't compile because the GetProcAddress doesn't have a "wide"
 implementation

 if (_UNICODE) is not defined then the statement
         gWinsockLib = LoadLibrary(_T("WSOCK32"));
 doesn't compile because _T is not defined


 2- The second problem is a "GPF" that happens in the file
 "src\validators\dtd\DTDElementDecl.cpp" in the line between <<>> :

 "
     ...
     else if (fModelType == Empty)
    {
        newValue = XMLString::replicate(XMLUni::fgEmptyString);
    }
     else
    {
        //
        //  Use a temp XML buffer to format into. Content models could be
        //  pretty long, but very few will be longer than one K. The
buffer
        //  will expand to handle the more pathological ones.
        //
        XMLBuffer bufFmt;
 <<         getContentSpec()->formatSpec(bufFmt);         >>
        newValue = XMLString::replicate(bufFmt.getRawBuffer());
    }
    ...
 "

 In some cases, I don't know exacty why???, the getContentSpec() function
 returns a NULL (fContent)
 So i had to test if it's null before calling formatSpec(...)

 Sincerely

 Abdelilah Elanbari




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to