查看单个帖子
旧 2009-05-04, 06:07 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】control codes and special characters

control codes and special characters
control codes and special characters
hi,
is there any function or a flag for an automatic conversion of control codes like %%nnn?
since the toolkit provides direct unicode support, my code to get the text from an odstring is the following:
code:
void copytext(const odstring *podacadtext, wchar** pwcsvptext )
{
*pwcsvptext = new wchar[podacadtext->getlength() + 1];
if( podacadtext->getlength() == 0 )
(*pwcsvptext)[0] = 0;
wcscpy( *pwcsvptext, podacadtext->c_str() );
}
i had hoped that the unicode support would also include the handling of control codes - with my code, it doesn't.
any ideas?
torsten
quote:
originally posted by torsten
hi,
is there any function or a flag for an automatic conversion of control codes like %%nnn?
hello torsten,
there is no such support. this sequence is used as character code in text entity only and processed in text iterator.
best regards,
sergey z.
hi,
thanks for this information!
torsten
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)