|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】problem with output of layer names
problem with output of layer names
problem with output of layer names
hallo,
i'd like to store the names of the layers contained in the *.dwg file in a char array (char*). i use the function call "precord->getname()).c_str()", to get the ansistring content of the odstring object, but this function call returns only the first char of the string. is it possible to get the whole content of ansistring?
thank's for your help!!
regards,
oliver
c_str() returns wchar_t*
use cast operator: (const char*)
ps.
note that names may be not convertible to the current codepage. it is safer to store unicode names.
vladimir
|