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