|
BOOL CTransUtil::AcMove(AcDbObjectId entId, const AcGePoint3d & ptForm, const AcGePoint3d & ptTo)
{
VARIANT *pvaForm = CCalculation::PointToVARIANT(ptForm);
VARIANT *pvaTo = CCalculation::PointToVARIANT(ptTo);
BOOL bol = SUCCEEDED(AcAxMove(entId, *pvaForm, *pvaTo));
delete pvaForm;
delete pvaTo;
return bol;
}
编译提示: “AcAxMove”: 找不到标识符。
添加包含头文件 #include “axboiler.h” 后,会提示这样的错误:
error C2061: 语法错误: 标识符“AcColor”
error C2061: 语法错误: 标识符“AcColor”
error C2061: 语法错误: 标识符“IAcadAcCmColor”
error C2061: 语法错误: 标识符“IAcadAcCmColor”
error C2061: 语法错误: 标识符“AcShadowDisplayType”
error C2061: 语法错误: 标识符“AcShadowDisplayType”
…
解决方法是,继续添加头文件 #include “acadi.h” ,注意头文件的先后顺序。
#include “acadi.h”
#include “axboiler.h”
|
|