几何尺寸与公差论坛------致力于产品几何量公差标准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 Problems (http://www.dimcax.com/hust/showthread.php?t=18886)

yang686526 2009-05-07 05:41 PM

【转帖】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!


所有的时间均为北京时间。 现在的时间是 03:22 AM.