几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】unicode Suppor (http://www.dimcax.com/hust/showthread.php?t=18888)

yang686526 2009-05-07 05:42 PM

【转帖】unicode Suppor
 
unicode support
unicode support
does dwgdirect support unicode under windows msvs 6? i can't get my unicode application to compile. i also tried compiling the odamfcapp example, but that didn't work either. after adding _unicode to the list of proprocessor definitions, i get the following error messages (i'm using the german version of msvc):
kompilierung l鋟ft...
exgsbitmapdevice.cpp
n:\dwgdirect\include\odstring.h(147) : error c2535: 'const class odstring &__thiscall odstring:perator =(char)' : member-funktion bereits definiert oder deklariert
n:\dwgdirect\include\odstring.h(144) : siehe deklaration von '='
n:\dwgdirect\include\odstring.h(190) : error c2535: 'const class odstring &__thiscall odstring:perator +=(char)' : member-funktion bereits definiert oder deklariert
n:\dwgdirect\include\odstring.h(178) : siehe deklaration von '+='
exgsgdidevice.cpp
these messages indicate that the specified operators are being declared more than once.
here's the section of odstring.h for the first message:
/** assignment operator. this odstring is assigned the value of a single character, ch.
*/
const odstring& operator=(odchar ch);
#if defined(_unicode) && !defined(_win32_wce)
const odstring& operator=(char ch);
#endif

in spite of the "#if defined(_unicode)" preprocessor code, some operators are being declared twice. it seems to me a "#else" is required. for example:
#if defined(_unicode) && !defined(_win32_wce)
const odstring& operator=(char ch);
#else
const odstring& operator=(odchar ch);
#endif

i'd rather not tweak the dwgdirect include files myself.
i'm using dwgdirect version 1.09.
any suggestions?
currently you can't build dwgdirect as a unicode application under win32. a couple of members have asked for this, but currently we have too many other items on our plate to make this a priority.


所有的时间均为北京时间。 现在的时间是 09:47 PM.