几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】reading mtext - shows up empty (http://www.dimcax.com/hust/showthread.php?t=18356)

yang686526 2009-05-07 12:34 PM

【转帖】reading mtext - shows up empty
 
reading mtext - shows up empty
reading mtext - shows up empty
i am reading a oddbmtextptr to extract its text.
bstr *text;
_bstr_t content (pmtext->contents ().c_str ());
*text = content.copy ();
this used to work in 1.14 but in 2.1 it does not.
the pmtext indeed has the context bcoz when i do
odstring pmtextstring = pmtext->contents (); i see the data in this string.
appreciate your help.
thank you.
i got the fix for it. another case of multibyte to unicode conversion !
thanks


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