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

erator =(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

erator +=(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.