CString lpSrcFilename="D:\\CD\\PA1\\ST1\\SE1\\IM1";

解决方案 »

  1.   

    D:\CD\PA1\ST1\SE1\IM1
    改成
    D:\\CD\\PA1\\ST1\\SE1\\IM1
      

  2.   

    你必须写成:
    CString lpSrcFilename="D:\\CD\\PA1\ST1\SE1\IM1"
    试试看!
      

  3.   

    AfxMessageBox("Do not open source file!");???
    CFile f(lpSrcFilename,CFile::modeNoTruncate¦CFile::modeCreate);其实定义CFile不用这么麻烦直接用CFile f;就可以了
      

  4.   

    其实我习惯用CStdioFile而不习惯用CFile
      

  5.   

    是呀,打开了两次。你在f.open的前面加一句f.close()吧^^b
      

  6.   

    to Flysnow
    CStdioFile和CFile没有太大的区别,只是多了两个ReadString,WriteString