const CString CForm1::GetUserMyDocumentPath()
{
TCHAR MyDir[_MAX_PATH];
//C:\Documents and Settings\owner\Application Data [以下测试可以得到] 请在StdAfx.h中添加 #include <shlobj.h> 不需要增加
//SHGetSpecialFolderPath(this->GetSafeHwnd(),MyDir,CSIDL_APPDATA,0);
//AfxMessageBox(MyDir);
C:\Documents and Settings\owner\My Documents\ [以下测试OK]
SHGetSpecialFolderPath(this->GetSafeHwnd(),MyDir,CSIDL_PERSONAL,0);
return MyDir;
}