获取CAD安装路径

bool GetAcadPath(CString &acadPath)
{
DWORD dwRet=:GetModuleFileName(acedGetAcadWinApp()->m_hInstance,acadPath.GetBuffer(_MAX_PATH),_MAX_PATH);
acadPath.ReleaseBuffer();
if(dwRet==0)
{
return false;
}
eles
{
return true;
}
}

 

posted @ 2015-07-31 16:50  xzh1993  阅读(892)  评论(0编辑  收藏  举报