高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|