Cstring strPath;
strPath = _T("");
TCHAR buff[MAX_PATH];HMODULE hmodle = GetModuleHandle(NULL);
ASSERT(hmodle);
if(GetModuleFileName(hmodle,buff,MAX_PATH) == 0)
return ;
CString str = buff;
int pos = str.ReverseFind('\\');
if(pos <= 0)
return ;
strPath = str.Left(pos + 1);