串口调试助手适合MFC新手入门


这是我自己用MFC编写的一个串口调试助手,包含了基本功能,适合新手入门
资源截图
代码片段和文件信息
// MMCOM.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “MMCOM.h“
#include “MMCOMDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CMMCOMApp

BEGIN_MESSAGE_MAP(CMMCOMApp CWinApp)
//{{AFX_MSG_MAP(CMMCOMApp)
// 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()

/////////////////////////////////////////////////////////////////////////////
// CMMCOMApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CMMCOMApp object

CMMCOMApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CMMCOMApp initialization

BOOL CMMCOMApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CMMCOMDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-01-05 09:06  串口调试助手v1.2
     目录           0  2014-11-08 20:42  串口调试助手v1.2Debug
     文件     5129216  2014-11-08 20:42  串口调试助手v1.2DebugMMCOM.bsc
     文件      122967  2014-11-08 20:42  串口调试助手v1.2DebugMMCOM.exe
     文件      282660  2014-11-08 20:42  串口调试助手v1.2DebugMMCOM.ilk
     文件       17463  2014-10-31 13:45  串口调试助手v1.2DebugMMCOM.obj
     文件     6878688  2014-10-30 21:51  串口调试助手v1.2DebugMMCOM.pch
     文件      443392  2014-11-08 20:42  串口调试助手v1.2DebugMMCOM.pdb
     文件        5312  2014-10-31 13:45  串口调试助手v1.2DebugMMCOM.res
     文件           0  2014-10-31 13:45  串口调试助手v1.2DebugMMCOM.sbr
     文件       64970  2014-11-08 20:42  串口调试助手v1.2DebugMMCOMDlg.obj
     文件           0  2014-11-08 20:42  串口调试助手v1.2DebugMMCOMDlg.sbr
     文件       47944  2014-10-30 21:51  串口调试助手v1.2Debugmscomm.obj
     文件           0  2014-10-30 21:51  串口调试助手v1.2Debugmscomm.sbr
     文件      105957  2014-10-30 21:51  串口调试助手v1.2DebugStdAfx.obj
     文件     1375034  2014-10-30 21:51  串口调试助手v1.2DebugStdAfx.sbr
     文件      222208  2015-01-04 12:21  串口调试助手v1.2Debugvc60.idb
     文件      372736  2014-11-08 20:42  串口调试助手v1.2Debugvc60.pdb
     文件       24776  2014-11-01 10:57  串口调试助手v1.2MMCOM.APS
     文件        1919  2015-01-05 09:06  串口调试助手v1.2MMCOM.clw
     文件        2049  2014-10-29 09:41  串口调试助手v1.2MMCOM.cpp
     文件        4700  2014-10-30 19:13  串口调试助手v1.2MMCOM.dsp
     文件         562  2014-10-29 12:46  串口调试助手v1.2MMCOM.dsw
     文件        1313  2014-10-29 09:41  串口调试助手v1.2MMCOM.h
     文件      132096  2015-01-05 09:06  串口调试助手v1.2MMCOM.ncb
     文件       58880  2015-01-05 09:06  串口调试助手v1.2MMCOM.opt
     文件         244  2015-01-04 12:21  串口调试助手v1.2MMCOM.plg
     文件        9115  2014-10-31 13:45  串口调试助手v1.2MMCOM.rc
     文件       13521  2014-11-08 20:42  串口调试助手v1.2MMCOMDlg.cpp
     文件        2240  2014-10-31 13:38  串口调试助手v1.2MMCOMDlg.h
     文件        8569  2014-10-29 10:04  串口调试助手v1.2mscomm.cpp
............此处省略10个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)