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