資源簡介
本人設計的DL/T645規約電能表的抄表和電表模擬軟件,兩個軟件通過串口通訊,包含了本人的大量心血,不為了增加下載點數還真不舍得拿出來,呵呵。-

代碼片段和文件信息
//?dianbiao645.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“dianbiao645.h“
#include?“dianbiao645Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
struct?comm?comm2;
char?zong[15]gu[15]ping[15];
/////////////////////////////////////////////////////////////////////////////
//?CDianbiao645App
BEGIN_MESSAGE_MAP(CDianbiao645App?CWinApp)
//{{AFX_MSG_MAP(CDianbiao645App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CDianbiao645App?construction
CDianbiao645App::CDianbiao645App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDianbiao645App?object
CDianbiao645App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDianbiao645App?initialization
BOOL?CDianbiao645App::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
CDianbiao645Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????539??2007-03-10?16:30??dianbiaotest\cfg_ISlave.h
?????文件???????8046??2007-03-07?15:22??dianbiaotest\ComPort.c
?????文件???????2949??2007-03-07?15:13??dianbiaotest\ComPort.h
?????文件??????21828??2007-12-12?12:16??dianbiaotest\dianbiaotest.aps
?????文件???????1829??2008-12-14?14:39??dianbiaotest\dianbiaotest.clw
?????文件???????2267??2007-06-26?15:33??dianbiaotest\dianbiaotest.cpp
?????文件???????4273??2007-05-06?16:49??dianbiaotest\dianbiaotest.dsp
?????文件????????547??2007-05-11?18:06??dianbiaotest\dianbiaotest.dsw
?????文件???????1483??2007-06-10?16:47??dianbiaotest\dianbiaotest.h
?????文件?????304128??2008-12-14?14:39??dianbiaotest\dianbiaotest.ncb
?????文件?????231424??2008-12-14?14:39??dianbiaotest\dianbiaotest.opt
?????文件???????1728??2008-12-14?12:31??dianbiaotest\dianbiaotest.plg
?????文件???????6463??2007-12-06?08:28??dianbiaotest\dianbiaotest.rc
?????文件??????11788??2008-03-07?13:12??dianbiaotest\dianbiaotestDlg.cpp
?????文件???????1713??2007-09-29?11:12??dianbiaotest\dianbiaotestDlg.h
?????文件???????6553??2007-03-12?10:43??dianbiaotest\ISlave.c
?????文件???????6395??2007-03-12?10:44??dianbiaotest\ISlave.h
?????文件???????9351??2007-03-09?17:26??dianbiaotest\ISlaveComm.c
?????文件???????1596??2007-03-09?17:45??dianbiaotest\ISlaveComm.h
?????文件???????1839??2007-03-10?15:28??dianbiaotest\main.c
?????文件???????1016??2007-03-07?16:02??dianbiaotest\Meter.c
?????文件???????4625??2007-03-08?15:35??dianbiaotest\Meter.h
?????文件???????3687??2007-05-06?13:21??dianbiaotest\ReadMe.txt
?????文件???????1078??2007-05-06?13:21??dianbiaotest\res\dianbiaotest.ico
?????文件????????404??2007-05-06?13:21??dianbiaotest\res\dianbiaotest.rc2
?????文件???????1242??2007-09-29?11:10??dianbiaotest\Resource.h
?????文件??????19669??2007-06-25?11:20??dianbiaotest\Serialport.cpp
?????文件???????3094??2007-06-25?10:53??dianbiaotest\Serialport.h
?????文件???????9318??2007-03-08?17:16??dianbiaotest\Slave645.c
?????文件???????1077??2007-03-08?16:38??dianbiaotest\Slave645.h
............此處省略40個文件信息
評論
共有 條評論