CString strExePath;
LPTSTR szExePath = strExePath.GetBuffer(512);
::GetModuleFileName(AfxGetInstanceHandle(), szExePath, 512);
strExePath.ReleaseBuffer();
CString strExePath;
LPTSTR szExePath = strExePath.GetBuffer(512);
::GetModuleFileName(AfxGetInstanceHandle(), szExePath, 512);
strExePath.ReleaseBuffer();