void GetCurrentDirectory(CString &szPath) { wchar_t pBuf[256]; GetModuleFileName(NULL,pBuf,sizeof(pBuf)/sizeof(wchar_t)); szPath=pBuf; szPath = szPath.Left(szPath.ReverseFind('\\')+1); }
posted on 2011-03-25 10:38 lartely 阅读(210) 评论(0) 编辑 收藏 举报