|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】unicode Problems
unicode problems
unicode problems
hi,
the client app that i'm building the dwgdirect libraries into has to be built using single-byte non-unicode characters for historical reasons. this has not caused a problem with most of the coding i've been doing, but one problem remains outstanding - my viewer class has to use the odgicontextfordbdatabase class as one of its base classes, and this fails to link correctly when i have the character set setting in projecty pages set to 'not set'. the routines textextentsbox(), and drawtext() require to be called with unicode strings it seems. is there anyway round this?
i managed to resolve this by setting wchar_t as not a built-in character type in msvc. that sorted it out, and i now (at last!) have my text showing!
|