CString path;
GetModuleFileName(NULL,path.GetBufferSetLength(MAX_PATH+1),MAX_PATH);
//到这里我们就得到了当前文件的路径 如果我们想得到该文件夹里面的其他文件 例如一个叫做report.xls的文件
//再进行如下的操作
int pos=path.ReverseFind('//');
path=path.Left(pos+1);
path+="report.xls";