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; } }