如题
谢谢

解决方案 »

  1.   

    C***App::InitInstance()中CCommandLineInfo cmdInfo;
    cmdInfo(cmdInfo);
    if(cmdInfo.m_nShellCommand==CCommandLineInfo::FileNew)       //加上这两句
        cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing;  
    if (!ProcessShellCommand(cmdInfo))
    return FALSE;
      

  2.   

    再问一句,马上给分:
    我如何打开第一个文档呢?用CCommandLineInfo,还是调用FileNew?
    最好给几行代码
      

  3.   

    把pDocTemplate改为类的成员变量或全局变量,
    pDocTemplate->OpenDocumentFile("C:\\ABC.TXT");//打开文件
    pDocTemplate->OpenDocumentFile(NULL);//空文档