Hello, I also tried to build a DLL usable from C++Builder. After doing similar changes to the code and setting up a (new) project it worked. I didn't have success with the project conversion tool. Then I made another project for the DOMPrint example as a command line application. It is neccessary to have a DLL compiled with C++Builder because it can't use VC-generated DLLs (C++ name mangling). Later I revisted the DOMSampleTreeViewer example from Alphaworks. After some minor changes it worked, but I didn't have time to make tests more intensiv then viewing personal.xml. Would it be of interest to add the C++Builder Projects to the source tree ? My project structure for C++Builder is in the parallel to VC. Unfortunately my code now isn't very god, its just working.
Dietrich Wolf -----Ursprüngliche Nachricht----- Von: Luis Fernando Robledano <[EMAIL PROTECTED]> An: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Datum: Montag, 24. Januar 2000 22:45 Betreff: Using Xerces from C++Builder4 >Hello, >Im interested in using Xerces utilities from a C++Builder4 (winNT) >application.Is there library binary file (.lib) available. Samples seems to >compile correctly if porting from VC6 version (although the import Borland >utility is said to work for VC5 project files), but the library project >fails on compilation. > Anyway, some changes I've need to make to "BorlandCDefs.hpp" file: >modifications are in 'lf' blocks -starting with "file://lf{" and ending with >"//}lf". > >{ >#define PLATFORM_EXPORT __declspec(dllexport) >#define PLATFORM_IMPORT __declspec(dllimport) >// #define NO_NATIVE_BOOL >typedef wchar_t XMLCh; > >//lf{ >// ------------------------------------------------------------------------ --- >// Define unsigned 16 and 32 bits integers >// ------------------------------------------------------------------------ --- >typedef unsigned short XMLUInt16; >typedef unsigned int XMLUInt32; >//}lf >#ifdef _DEBUG >#define XML4C_DEBUG >#endif >//lf{ >//const char* const XML4C_DLLName = "XercesLib XML4C_DLLVersionStr; >const char* const XML4C_DLLName = "xerces-c_" XML4C_DLLVersionStr; >//}lf >} > > >PLEASE, HOW CAN I USE XERCES FROM A BORLANDC++4 APPLICATION??! > >THANK YOU VERY MUCH. > > > Luis Fernando Robledano Esteban >e-mail : [EMAIL PROTECTED] >-------------------------------------------- >"Juzga tu exito en la medida de lo que tuviste que renunciar para obtenerlo." >-------------------------------------------- >