Hi,

It looks like you're compiling with Visual C++ 7.x.  If that's the case,
you really should use our project files, so the compiler options are set
correctly.

The problem you're seeing is related to whether or not wchar_t is treated
as a distinct type or not.  The standard says it is, but previous versons
of Visual C++ did not treat it that way, and Xerces-C is written to expect
that it is, so Xalan-C must do so as well.  Look in the documentation for
information about the option "/Zc:wchar_t (wchar_t Is Native Type)" and
make sure you set the option "Treat wchar_t as Built-in Type" is set to
"No".

Dave



                                                                                       
                                               
                      "Jaran Nilsen"                                                   
                                               
                      <[EMAIL PROTECTED]         To:      "[EMAIL PROTECTED] Apache. 
Org" <[EMAIL PROTECTED]>                       
                      com>                     cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                          
                                               Subject: Getting type cast error when 
compiling XSLException                           
                      05/01/2004 07:35                                                 
                                               
                      AM                                                               
                                               
                      Please respond                                                   
                                               
                      to xalan-dev                                                     
                                               
                                                                                       
                                               



Hi.

I am trying to make an application which downloads a HTML page, then
transforms it using Xalan. However when I try to compile my project (I have
followed the âBasic usage patten with the XalanTransformer C++ APIâ guide
to set up include directories / lib directories in VC++) I get the error
message:

      c:\Libraries\xml-xalan\c\src\xalanc\PlatformSupport\XSLException.hpp(95):
 error C2440: 'type cast' : cannot convert from 'wchar_t [13]' to
      'xalanc_1_7::XalanDOMString'

Can anyone explain me what I have done wrong, or if there is something I
have overseen when setting up Xalan and Xerces?

Thanks!

Regards,
Jaran Nilsen
www.jaranweb.com




                                                    
                                                    
                                                    
                                                    
 avast! Antivirus: Outbound message clean.          
                                                    
                                                    
 Virus Database (VPS): 0418-6, 05/01/2004           
 Tested on: 5/1/2004 4:35:35 PM                     
 avast! is copyright (c) 2000-2003 ALWIL Software.  
                                                    






Reply via email to