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

yang686526 2009-05-04 06:07 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 04:28 AM.