一段程序看不太懂
CString sPath;
GetModuleFileName(NULL,sPath.GetBufferSetLength(MAX_PATH+1),MAX_PATH);//不懂,各个参数都是什么意义
sPath.ReleaseBuffer ();//不懂
int nPos;
nPos=sPath.ReverseFind ('\\');
sPath=sPath.Left (nPos);
nPos=sPath.ReverseFind('\\');
sPath=sPath.Left (nPos);
CString lpszFile = sPath + "\\db6.mdb";
据说,用上边一段代码就可以得到,文件的完整路径名,各个函数都起什么作用,原理是什么?