CString GetExecutePath(void) { CString strPath; GetModuleFileName(NULL,strPath.GetBufferSetLength(MAX_PATH+1),MAX_PATH); strPath.ReleaseBuffer(); int nPos; nPos=strPath.ReverseFind('\\'); strPath=strPath.Left(nPos); return strPath; }