只需一步,快速开始
使用道具 举报
gxss发表于2004-8-28 17:39:00使用Explode()函数,得到系列AcDbText对象,再次调用AcDbText::TextString()即可得到你想要的内容!
这样可以不用炸开多文本,提取出纯文本
CString str; str.Format("%s",pmtext->contents());int pot=str.Find(';'); int pot2=str.Find('}'); int num=pot2-pot-1; str=str.Mid(pot+1,num); char *a=(LPTSTR)(LPCTSTR)str;
bgl_820601 发表于 2006-12-18 11:58 这样可以不用炸开多文本,提取出纯文本CString str; str.Format("%s",pmtext->contents());in ...
gxss 发表于 2004-8-28 17:39 使用Explode()函数,得到系列AcDbText对象,再次调用AcDbText::TextString()即可得到你想要的内容!
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-2-22 18:35 , Processed in 0.158279 second(s), 22 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.