2024年4月2日发(作者:)
1. 将字符串类型转换成double型:
double x=_tstof(m_strXPt);
2.Format函数使用方法:
m_(_T("%2f"), pt[X]);
3.CAD Control型变量类型:
AcUiPickButton, AcUiDropSite, AcUiToolButton, AcUiSelectButton,
AcUiBitmapStatic, AcUiOwnerDrawButton, AcUiBitmapButton
4. “_T”: 找不到标识符
解决办法:加入#include "tchar.h"
5. setName(blkName); blkName[]要为WCHAR型
6. 从ads_point 转换到AcGePoint3d 类型的点,即可以通过数组元素直接赋值,
也可以通过asPnt3d 函数直接转化:


发布评论