文件升级.cpp

来自「嵌入式DOS系统上位升级程序FileUpgrade, 需配合本人上传的FileU」· C++ 代码 · 共 58 行

CPP
58
字号
// 文件升级.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "文件升级.h"
#include "MainDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMainApp

BEGIN_MESSAGE_MAP(CMainApp, CWinApp)
	//{{AFX_MSG_MAP(CMainApp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMainApp construction

CMainApp::CMainApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CMainApp object

CMainApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CMainApp initialization

CMainDlg *m_ptrMainDlgWnd; 
void ShowMessage(char *str)
{
	m_ptrMainDlgWnd->MessageBox(str,"信息",MB_OK|MB_ICONWARNING);
}

BOOL CMainApp::InitInstance()
{

	CMainDlg dlg;
	m_pMainWnd = &dlg;
	m_ptrMainDlgWnd=&dlg;
	dlg.DoModal();

	return FALSE;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?