• 大小: 43KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-01
  • 语言: 其他
  • 标签: MODBUS  vc++  PLC  

资源简介

vc实现MODBUS协议 PLC

资源截图

代码片段和文件信息

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

#include “stdafx.h“
#include “AAA.h“
#include “AAADlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CAAAApp

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

/////////////////////////////////////////////////////////////////////////////
// CAAAApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CAAAApp object

CAAAApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CAAAApp initialization

BOOL CAAAApp::InitInstance()
{
AfxEnableControlContainer();
AfxInitRichEdit();
// 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

CAAADlg 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;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      21584  2007-10-30 16:19  MODBUS VC\AAA.APS

     文件       1505  2007-10-30 16:19  MODBUS VC\AAA.clw

     文件       2040  2005-08-02 11:01  MODBUS VC\AAA.cpp

     文件       4302  2005-08-03 17:27  MODBUS VC\AAA.dsp

     文件        531  2005-08-02 17:17  MODBUS VC\AAA.dsw

     文件       1291  2005-08-02 10:23  MODBUS VC\AAA.h

     文件     148480  2007-10-30 16:19  MODBUS VC\AAA.ncb

     文件      55808  2007-10-30 16:19  MODBUS VC\AAA.opt

     文件       1151  2007-09-17 09:04  MODBUS VC\AAA.plg

     文件       6032  2005-08-03 12:58  MODBUS VC\AAA.rc

     文件      10460  2005-08-05 11:02  MODBUS VC\AAADlg.cpp

     文件       1625  2005-08-03 16:24  MODBUS VC\AAADlg.h

     文件       9564  2005-08-05 11:06  MODBUS VC\MODBUS_SERVER.cpp

     文件       1669  2005-08-05 10:57  MODBUS VC\MODBUS_SERVER.h

     文件       3400  2007-09-17 09:04  MODBUS VC\MODBUS_SHARE.cpp

     文件        228  2005-08-02 13:56  MODBUS VC\MODBUS_SHARE.h

     文件       6735  2005-08-05 10:28  MODBUS VC\PORT.cpp

     文件        590  2005-08-02 13:58  MODBUS VC\PORT.h

     文件       3525  2005-08-02 10:23  MODBUS VC\ReadMe.txt

     文件       1078  2005-08-02 10:23  MODBUS VC\res\AAA.ico

     文件        395  2005-08-02 10:23  MODBUS VC\res\AAA.rc2

     文件       1049  2005-08-02 17:29  MODBUS VC\Resource.h

     文件        205  2005-08-02 10:23  MODBUS VC\StdAfx.cpp

     文件       1054  2005-08-02 10:23  MODBUS VC\StdAfx.h

     目录          0  2007-10-30 16:19  MODBUS VC\Debug

     目录          0  2007-10-30 16:19  MODBUS VC\res

     目录          0  2007-10-30 16:19  MODBUS VC

----------- ---------  ---------- -----  ----

               284519                    28



............此处省略1个文件信息

评论

共有 条评论