带波形显示的串口调试助手


能将串口接收到的数据实时转化为波形图,不过有点小bug,数据量太大会出问题,希望有谁能解决告知我
资源截图
代码片段和文件信息

// Com.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “Com.h“
#include “ComDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CComApp

BEGIN_MESSAGE_MAP(CComApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CComApp construction

CComApp::CComApp()
{
// support Restart Manager
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;

// TODO: add construction code here
// Place all significant initialization in InitInstance
}


// The one and only CComApp object

CComApp theApp;


// CComApp initialization

BOOL CComApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles.  Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();


AfxEnableControlContainer();

// Create the shell manager in case the dialog contains
// any shell tree view or shell list view controls.
CShellManager *pShellManager = new CShellManager;

// 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
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

CComDlg dlg;
m_pMainWnd = &dlg;
INT_PTR 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
}

// Delete the shell manager created above.
if (pShellManager != NULL)
{
delete pShellManager;
}

// 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-06-02 11:18  Com
     目录           0  2015-03-23 16:06  ComCom
     文件        3702  2015-01-14 11:28  ComComCAxes.h
     文件       15255  2015-01-14 11:28  ComComCAxis.h
     文件           0  2015-03-23 16:06  ComComCBMPExport.h
     文件        1093  2015-01-14 11:28  ComComCScroll.h
     文件       27925  2015-01-14 11:28  ComComCSeries.h
     文件       15331  2015-01-14 11:28  ComComCTChart.h
     文件      107056  2015-02-20 17:31  ComComCom.aps
     文件        2430  2015-01-13 21:15  ComComCom.cpp
     文件         487  2015-01-13 21:15  ComComCom.h
     文件       17736  2015-02-20 17:31  ComComCom.rc
     文件        6359  2015-01-14 11:28  ComComCom.vcxproj
     文件        2761  2015-01-14 11:28  ComComCom.vcxproj.filters
     文件         143  2015-01-13 21:15  ComComCom.vcxproj.user
     文件       10803  2015-05-04 15:36  ComComComDlg.cpp
     文件        1246  2015-01-20 15:24  ComComComDlg.h
     目录           0  2015-05-04 15:36  ComComDebug
     文件       50224  2015-05-04 15:36  ComComDebugCL.read.1.tlog
     文件        2338  2015-05-04 15:36  ComComDebugCL.write.1.tlog
     文件         915  2015-01-14 11:29  ComComDebugCom.exe.embed.manifest
     文件         980  2015-01-14 11:29  ComComDebugCom.exe.embed.manifest.res
     文件         640  2015-05-04 15:36  ComComDebugCom.exe.intermediate.manifest
     文件          61  2015-05-04 15:36  ComComDebugCom.lastbuildstate
     文件        2609  2015-05-04 15:36  ComComDebugCom.log
     文件       38940  2015-02-20 17:17  ComComDebugCom.obj
     文件    36241408  2015-05-04 15:36  ComComDebugCom.pch
     文件       70796  2015-05-04 15:36  ComComDebugCom.res
     文件         713  2015-02-20 17:17  ComComDebugCom.vcxprojResolveAssemblyReference.cache
     文件           0  2015-02-20 17:17  ComComDebugCom.write.1.tlog
     文件      131372  2015-05-04 15:36  ComComDebugComDlg.obj
............此处省略71个文件信息

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

发表评论

评论列表(条)