几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】c-str90 no longer returning a c string in dd2.0.2 (http://www.dimcax.com/hust/showthread.php?t=15602)

yang686526 2009-05-04 06:57 PM

【转帖】c-str90 no longer returning a c string in dd2.0.2
 
c_str() no longer returning a c string in dd2.0.2
c_str() no longer returning a c string in dd2.0.2
it looks like dd2.0.2 has moved to unicode.
odstring:: c_str() no longer return a c string in dd2.0.2
c strings stricto-sensu are 8 bits char types terminated by \0.
c_str() now returns a pointer to unicode chars.
how to get a ansi 8 bits char* from a odstring ?
(ex svcs.product(),versionstring()... return an odstring and something like this no longer works:
char sztemp[100];
sprintf(sztemp, " %s %s v%s (%s by %s)\n", svcs.product().c_str(),svcs.versionstring().c_str( ), svcs.program().c_str(), svcs.companyname().c_str()fff">fff">);
thanks
james
forget
forget the previous post.
i have found the cast (const char*)odstring
j.


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