If you want to use Xalan and Xerces, you have to use the multithreaded DLL
runtimes -- there's no way around that.

The other possibility is to wrap all calls you need to make to Xalan and
Xerces with APIs that do not return any Xerces or Xalan objects, and treat
all memory allocations/deallocations properly.  An example of this would be
Xalan's C API, which allows a C program to do transformations.  It's not as
flexible as using Xerces and Xalan natively, but it will work.  You could
look at that for ideas, or just use it, if you're just interested in doing
transformations.

Dave



                                                                                
                                                      
                      "+Z5c- +W1CCrw-"                                          
                                                             
                      <[EMAIL PROTECTED]         To:      
[email protected]                                                  
                      mail.com>                cc:                              
                                                      
                                               Subject: Re: Problems with using 
xalan API                                             
                      01/31/2002 05:53                                          
                                                      
                      AM                                                        
                                                      
                                                                                
                                                      
                                                                                
                                                      




Yes, that's where the problem lies, i tried again with the test program
changing the libraries, and it works fine. Thanks however i ran into
another problem. the application that i am trying to intergate xalan into
are written under single-thread and it will not compiled (LNK 2005 and 4098
error)using multithread dll, i attempt to compile the rest of the progam
under single thread and written a separate cpp file to hold the xalan api
(that is complied under multithread DLL) this approach enable me to compile
sucessfully but i ran into the old problems again that it fails to preform
the transformation. if possible, can someone help me out onto this.
Mank thanks
Regards
Kit

P.S. bult environment:Win2000 using MSVC+-+- v.6 with SP5


_________________________________________________________________
+VyhgqHaEiExS1Yjdf25OClCzkAFjpWU2- Hotmail +kPVO9v8Mist5+4Hz- 
http://mobile.msn.com+MAI-





Reply via email to