几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem with output of layer names (http://www.dimcax.com/hust/showthread.php?t=18158)

yang686526 2009-05-06 11:30 PM

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


所有的时间均为北京时间。 现在的时间是 12:08 PM.