请解释一下,谢谢!

解决方案 »

  1.   

    给出你的部分代码
    应该是AfxFormatStrings吧或者AfxFormatString1或者AfxFormatString2吧
      

  2.   

    出错的位置在MFC库里面。
    我的代码:
    BOOL CDoc::CanCloseFrame(CFrameWnd* pFrame) 
    {
        // TODO: Add your specialized code here and/or call the base class
        
        return CDocument::CanCloseFrame(pFrame); // 修改了文档时,出错
                          // 本应弹出是否保存对话框,可是没有找到资源
                          // Release版本,弹出一个上面空空如也的是否保存对话框
    }
    怀疑是我的资源坏了。
      

  3.   

    是不是修改了表示文档类型的字符串
    就是和\nMQuery\nMQuery\n\n\nMQuery.Document\nMQuery Document类似的东东了
      

  4.   

    是啊,我的资源:
    IDR_MAINFRAME
    Delta OPC Server\nServer1\nDelta OPC Server1\nDelta OPC Server Files (*.opc)\n.opc\nDelta_OPC_Server.Document\nDelta OPC Server Document
    另外,我删除资源中的了:
        "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
        "#define _AFX_NO_OLE_RESOURCES\r\n"
        "#include ""afxres.rc""   // Standard components\r\n"
        "#include ""afxprint.rc"" // printing/print preview resources\r\n"
    #include "afxres.rc"   // Standard components
    #include "afxprint.rc"  // printing/print preview resources