vc控制Arduino,实现串口通信


vc控制arduino的小程序,实现控制点亮二极管。
资源截图
代码片段和文件信息
// Server.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “Server.h“
#include “ServerDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CServerApp

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

/////////////////////////////////////////////////////////////////////////////
// CServerApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CServerApp object

CServerApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CServerApp initialization

BOOL CServerApp::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

CServerDlg 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-11-26 13:25  Server
     目录           0  2015-11-26 13:25  ServerDebug
     文件      114742  2015-11-26 13:25  ServerDebugServer.exe
     文件      263628  2015-11-26 13:25  ServerDebugServer.ilk
     文件       14368  2015-11-26 13:25  ServerDebugServer.obj
     文件     5638936  2015-11-26 13:25  ServerDebugServer.pch
     文件      394240  2015-11-26 13:25  ServerDebugServer.pdb
     文件        2716  2015-11-26 13:25  ServerDebugServer.res
     文件       54578  2015-11-26 13:25  ServerDebugServerDlg.obj
     文件     5295028  2015-11-26 13:25  ServerDebugServerDlg.pch
     文件       25600  2015-11-26 13:25  ServerDebugServerDlg.pdb
     文件      105547  2015-11-26 13:25  ServerDebugStdAfx.obj
     文件      214016  2015-11-26 13:25  ServerDebugvc60.idb
     文件      364544  2015-11-26 13:25  ServerDebugvc60.pdb
     文件        3579  2015-11-26 13:25  ServerReadMe.txt
     目录           0  2015-11-26 13:25  ServerRelease
     文件       24576  2015-11-26 13:25  ServerReleaseServer.exe
     文件        9968  2015-11-26 13:25  ServerReleaseServer.obj
     文件     5826184  2015-11-26 13:25  ServerReleaseServer.pch
     文件        2716  2015-11-26 13:25  ServerReleaseServer.res
     文件       32388  2015-11-26 13:25  ServerReleaseServerDlg.obj
     文件         750  2015-11-26 13:25  ServerReleaseStdAfx.obj
     文件       50176  2015-11-26 13:25  ServerReleasevc60.idb
     目录           0  2015-11-26 13:25  Server
es
     文件         914  2015-11-26 13:25  Server
esource.h
     文件        1078  2015-11-26 13:25  Server
esServer.ico
     文件         398  2015-11-26 13:25  Server
esServer.rc2
     文件       38328  2015-11-26 13:25  ServerServer.aps
     文件        1250  2015-11-26 13:25  ServerServer.clw
     文件        2063  2015-11-26 13:25  ServerServer.cpp
     文件        4159  2015-11-26 13:25  ServerServer.dsp
............此处省略14个文件信息

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

发表评论

评论列表(条)