資源簡介
從三菱PLC軟件中提取的PLC與C# VB VC等高級語言的通訊實例,送給有用的人吧.

代碼片段和文件信息
//?CustomSampleEng.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CustomSampleEng.h“
/***********************************************************/
#include?“..\..\..\Include\ActUtlType_i.h“ //?For?ActUtlType?Control
#include?“..\..\..\Include\ActProgType_i.h“ //?For?ActProgType?Control
/***********************************************************/
#include?“CustomSampleEngDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCustomSampleEngApp
BEGIN_MESSAGE_MAP(CCustomSampleEngApp?CWinApp)
//{{AFX_MSG_MAP(CCustomSampleEngApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCustomSampleEngApp?construction
CCustomSampleEngApp::CCustomSampleEngApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCustomSampleEngApp?object
CCustomSampleEngApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCustomSampleEngApp?initialization
BOOL?CCustomSampleEngApp::InitInstance()
{
/***************************************************/
/*?Initialize?OLE?Library?????????????????????????*/
if?(!AfxOleInit())
{
AfxMessageBox(“AfxOleInit()?Failed.“);
return?FALSE;
}
/***************************************************/
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
CCustomSampleEngDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????204800??2012-06-08?12:19??Samples\AccessVBA\Sample\Sample.mdb
?????文件?????901120??2017-05-10?15:40??Samples\AccessVBA\TestPro\ActTest(early).mdb
?????文件????1110016??2017-05-10?15:40??Samples\AccessVBA\TestPro\ActTest(late).mdb
?????文件??????37376??2012-06-08?12:19??Samples\ExcelVBA\Sample\Sample.xls
?????文件??????36352??2012-06-08?12:19??Samples\ExcelVBA\Sample\Sample_DeviceRW.xls
?????文件?????619008??2017-05-10?15:40??Samples\ExcelVBA\TestPro\ActProgType.xls
?????文件??????52736??2013-11-20?10:58??Samples\ExcelVBA\TestPro\ActSupportMsg.xls
?????文件?????521728??2014-05-14?09:44??Samples\ExcelVBA\TestPro\ActUtlType.xls
?????文件???????9008??2000-12-02?16:51??Samples\GppW\CCG4A\Gppw.gpj
?????文件??????18619??2000-12-02?16:51??Samples\GppW\CCG4A\Gppw.gps
?????文件?????????64??2000-12-02?16:51??Samples\GppW\CCG4A\Project.inf
?????文件??????79872??1998-05-15?09:56??Samples\GppW\CCG4A\ProjectDB.mdb
?????文件?????????74??1998-08-05?14:43??Samples\GppW\CCG4A\Resource\Others\COMMENT.WCD
?????文件?????????74??1998-08-05?14:43??Samples\GppW\CCG4A\Resource\Others\MAIN.WCD
?????文件???????3512??2000-12-02?16:51??Samples\GppW\CCG4A\Resource\PARAM.WPA
?????文件??????12466??2000-12-02?16:51??Samples\GppW\CCG4A\Resource\Pou\Body\MAIN.WPG
?????文件????????243??2001-10-18?19:48??Samples\GppW\FXCPUTEL\Gppw.gpj
?????文件??????19130??2001-10-18?19:48??Samples\GppW\FXCPUTEL\Gppw.gps
?????文件?????????64??2001-10-18?19:48??Samples\GppW\FXCPUTEL\Project.inf
?????文件??????79872??1998-09-09?11:20??Samples\GppW\FXCPUTEL\ProjectDB.mdb
?????文件?????????74??2001-10-15?19:27??Samples\GppW\FXCPUTEL\Resource\Others\COMMENT.wcd
?????文件????????262??2001-10-18?19:48??Samples\GppW\FXCPUTEL\Resource\param.wpa
?????文件??????17081??2001-10-18?19:48??Samples\GppW\FXCPUTEL\Resource\POU\Body\MAIN.wpg
?????文件????????407??2001-10-18?19:50??Samples\GppW\QJ71C24Callback\Gppw.gpj
?????文件??????22481??2002-08-09?15:59??Samples\GppW\QJ71C24Callback\Gppw.gps
?????文件?????????64??2001-10-18?19:50??Samples\GppW\QJ71C24Callback\Project.inf
?????文件??????79872??1998-09-09?11:20??Samples\GppW\QJ71C24Callback\ProjectDB.mdb
?????文件????????644??2001-10-16?10:27??Samples\GppW\QJ71C24Callback\Resource\Others\COMMENT.wcd
?????文件????????632??2002-08-09?15:59??Samples\GppW\QJ71C24Callback\Resource\param.wpa
?????文件???????1021??2001-10-16?14:52??Samples\GppW\QJ71C24Callback\Resource\Pou\Body\MAIN.wpg
............此處省略794個文件信息
評論
共有 條評論