在初始化过程中启动其他对话框

来源:互联网 发布:大数据预处理方法 编辑:程序博客网 时间:2024/05/21 10:35

//by rgn
    MessageBox(NULL,"Initial Ok!","TestMessage",MB_ICONWARNING + MB_YESNO + MB_DEFBUTTON2 );
    AfxMessageBox("Next Step:Input Your Password!");
   
   
    CPasswordDialog PasswordDlg;
    if(PasswordDlg.DoModal ()==IDOK)
    {
        if(PasswordDlg.m_PasswordValue!=1925)

        {
            MessageBox(NULL,"口令错误","错误",MB_OK|MB_ICONERROR);
            return FALSE;

        }

        AfxMessageBox("欢迎进入配置程序");


    }
    // 分析标准外壳命令、DDE、打开文件操作的命令行
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);


    // 调度在命令行中指定的命令。如果
    // 用 /RegServer、/Register、/Unregserver 或 /Unregister 启动应用程序,则返回 FALSE。
    if (!ProcessShellCommand(cmdInfo))
        return FALSE;

原创粉丝点击