資源簡介
VC++環(huán)境下開發(fā)的IEC61850報文發(fā)送源代碼
可以手動配置ASDU各種參數(shù),手動選擇9-1或9-2協(xié)議
代碼片段和文件信息
//?9_1send.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“9_1send.h“
#include?“9_1sendDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy9_1sendApp
BEGIN_MESSAGE_MAP(CMy9_1sendApp?CWinApp)
//{{AFX_MSG_MAP(CMy9_1sendApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMy9_1sendApp?construction
CMy9_1sendApp::CMy9_1sendApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy9_1sendApp?object
CMy9_1sendApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy9_1sendApp?initialization
BOOL?CMy9_1sendApp::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
CMy9_1sendDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????23416??2010-10-13?09:20??9_1send\9_1send.aps
?????文件???????2584??2010-10-13?17:31??9_1send\9_1send.clw
?????文件???????2099??2010-10-13?09:05??9_1send\9_1send.cpp
?????文件???????4244??2010-10-13?10:39??9_1send\9_1send.dsp
?????文件????????522??2010-10-13?09:05??9_1send\9_1send.dsw
?????文件???????1345??2010-10-13?09:05??9_1send\9_1send.h
?????文件??????99328??2010-10-13?17:31??9_1send\9_1send.ncb
?????文件??????55808??2010-10-13?17:31??9_1send\9_1send.opt
?????文件???????5357??2010-10-13?10:43??9_1send\9_1send.plg
?????文件???????8153??2010-10-13?09:05??9_1send\9_1send.rc
?????文件??????16136??2010-10-13?10:43??9_1send\9_1sendDlg.cpp
?????文件???????1783??2010-10-13?10:12??9_1send\9_1sendDlg.h
?????文件????3318784??2010-10-13?10:43??9_1send\Debug\9_1send.bsc
?????文件????2134103??2010-10-13?10:43??9_1send\Debug\9_1send.exe
?????文件????2515312??2010-10-13?10:43??9_1send\Debug\9_1send.ilk
?????文件??????15127??2010-10-13?10:29??9_1send\Debug\9_1send.obj
?????文件????6899532??2010-10-13?10:29??9_1send\Debug\9_1send.pch
?????文件????4129792??2010-10-13?10:43??9_1send\Debug\9_1send.pdb
?????文件??????10184??2010-10-13?09:22??9_1send\Debug\9_1send.res
?????文件??????????0??2010-10-13?10:29??9_1send\Debug\9_1send.sbr
?????文件??????46124??2010-10-13?10:43??9_1send\Debug\9_1sendDlg.obj
?????文件??????????0??2010-10-13?10:43??9_1send\Debug\9_1sendDlg.sbr
?????文件?????548944??2010-10-13?09:05??9_1send\Debug\skinppwtl.dll
?????文件???????3035??2010-10-13?10:29??9_1send\Debug\SMV.obj
?????文件??????????0??2010-10-13?10:29??9_1send\Debug\SMV.sbr
?????文件?????105875??2010-10-13?10:29??9_1send\Debug\StdAfx.obj
?????文件????1361623??2010-10-13?10:29??9_1send\Debug\StdAfx.sbr
?????文件?????246784??2010-10-13?10:43??9_1send\Debug\vc60.idb
?????文件?????380928??2010-10-13?10:43??9_1send\Debug\vc60.pdb
?????文件???????3877??2010-10-13?09:05??9_1send\Include\bittypes.h
............此處省略38個文件信息
評論
共有 條評論