CString GetPathFromBrowse(void)
{
CString strPath;
BROWSEINFO bi;//保存用户选择的目录信息
bi.hwndOwner = NULL;
bi.pidlRoot = NULL;
bi.pszDisplayName = NULL;
bi.lpszTitle = NULL;
bi.ulFlags = NULL;
bi.lpfn = NULL;
bi.lParam = 0;
bi.iImage = 0;
SHGetPathFromIDList(SHBrowseForFolder(&bi),strPath.GetBuffer(MAX_PATH));
strPath.ReleaseBuffer();
return strPath;
}