如题

解决方案 »

  1.   

    字符串相加
    1.
    CString str1, str2;
    str1 += "\\" + str2;2.
    CString str1, str2, str3;
    str3.Format("%s\\%s", str2, str3);
      

  2.   

    GetPathName();不是就可以得到文件的完整路径了麽,你还合并什么?
      

  3.   

    直接用CFileDialog::GetPathName(),或者按照 lixiaosan(小三)的第一个说法……
      

  4.   

    GetPathName();不是就可以得到文件的完整路径了麽,你还合并什么?--------------------------------------------------------
    请问这个完整路径是否包含文件名信息,还是只包含文件所在目录的信息?
      

  5.   

    Call this function to retrieve the full path of the file entered in the dialog box.The path of the filename includes the file's title plus the entire directory path. For example, GetPathName will return "C:\FILES\TEXT.DAT" for the file C:\FILES\TEXT.DAT.
      

  6.   

    GetPathName();返回文件的完整路径。包括完整文件名。你可以在调试中观察它的值