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; } }
时间: 2024-10-07 07:14:06
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; } }