查看单个帖子
旧 2009-05-07, 05:42 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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 odstringerator =(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 odstringerator +=(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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)