You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/08/29 12:10:07 UTC

[DO NOT REPLY: Bug 2728] Borland C++ Builder 5.0 Compile Error

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2728

*** shadow/2728	Thu Aug  9 13:10:05 2001
--- shadow/2728.tmp.29779	Wed Aug 29 03:10:07 2001
***************
*** 100,102 ****
--- 100,122 ----
  \BCB4\OBJ\ASCIIRANGEFACTORY.OBJ
  
  Is there anything which can be done about that ?
+ 
+ 
+ ------- Additional Comments From thealx@poczta.onet.pl  2001-08-29 03:10 -------
+ I succesfully _compiled_ on Borland C++Builder 4+updates; method is rather
+ complicated:
+  - create BCB project from VC6 one (with MFC->BCB Wizard)
+  - enable "Borland" compilation type 
+  - change temporarily (at least on Win2k) include/winnt.h (yes, the system
+ header) where LPWCSTR is defined from wchar_t * to unsigned short * 
+   (there is some #ifndef _MAC, change it to #if (!defined _MAC && !defined
+ __BORLANDC__) - UGLY WAY, BUT WORKS (wchar_t == unicode UTF16 on WinNT and
+ unsigned short'ed XMLCh is also unicode UTF16)
+  - XMLCh should be unsigned short, not wchar_t
+  - compile 
+  - you'll get about 15-20 errors in Win32TransService - so cast (unsigned short*
+ ) to (wchar_t*) or (wchar_t*) to (unsigned short*) where appropiate (in some
+ callings to wcstochr and similiar functions);  it's ugly :-( yeah I know
+  - and everything compiles... 
+  - and (with some exception for static XMLStringPool object) even DOMPrint
+ example works... but this exception is a subject for other bug...

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org