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

yang686526 2009-05-06 06:37 PM

【转帖】non-unicode build
 
non-unicode build
non-unicode build
have an old project with dwgdirect 1.14, non unicode. now, i have problems opening some drawings. newer dwgdirect version opens the drawings correctly.
so, i want to switch to dwgdirect 2.x. there is no need to open autocad 2007/1008/2009 (unicode) drawings, but to build my project non unicode, as with dwgdirect 1.14.
the example 'odreadexdll' is as unicode and non-unicode build available. but works the non-unicode version?
in dwgdirect 2.5.2.0, the odplatformsettings.h has:
code:
#if defined(_native_wchar_t_defined) && (!defined(_win32_wce) || _msc_ver < 1300)
typedef unsigned short odchar;
typedef unsigned short oduchar;
#else
typedef wchar_t odchar;
typedef wchar_t oduchar;
#endifso, odchar is never char, always 16bit. but for my non-unicode build, i need
code:
typedef char odchar;as in dwgdirect 1.14.
there is my mistake? or is it not possible to build 'real' non-unicode?
thanks for any help
woho
dwgdirect is unicode library, but your application may be non-unicode.
of course you cannot redefine odchar.
note that odstring has a constructor accepting char*
vladimir


所有的时间均为北京时间。 现在的时间是 06:30 PM.