資源簡(jiǎn)介
美國(guó)Delta Tau公司PMAC多軸運(yùn)動(dòng)控制卡的VC++示例程序-Delta Tau American companies PMAC multi-axis motion control card VC++ Sample procedures(需要自行到網(wǎng)上下載pcomm32.dll文件)。

代碼片段和文件信息
//?CSimpleApp.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CSimpleApp.h“
#include?“CSimpleAppDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCSimpleAppApp
BEGIN_MESSAGE_MAP(CCSimpleAppApp?CWinApp)
//{{AFX_MSG_MAP(CCSimpleAppApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CCSimpleAppApp?construction
CCSimpleAppApp::CCSimpleAppApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCSimpleAppApp?object
CCSimpleAppApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCSimpleAppApp?initialization
BOOL?CCSimpleAppApp::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
CCSimpleAppDlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2006-05-31?18:04??CSimpleApp
?????文件??????23888??2005-05-24?16:09??CSimpleApp\runtime.cpp
?????文件??????14088??2006-05-31?20:19??CSimpleApp\CSimpleApp.rc
?????文件???????1151??2006-05-31?20:20??CSimpleApp\CSimpleApp.plg
?????文件??????19062??2005-06-08?16:11??CSimpleApp\Pmacu.h
????..AD...?????????0??2006-05-31?18:38??CSimpleApp\Include
?????文件??????23824??2002-02-25?16:35??CSimpleApp\Include\Bintoken.h
?????文件???????2933??1999-02-02?10:01??CSimpleApp\Include\BUS.H
?????文件??????18616??2002-03-25?08:10??CSimpleApp\Include\cmplc56k.h
?????文件???????9155??2002-03-25?07:46??CSimpleApp\Include\cmplclib.h
?????文件??????13011??2002-10-28?12:47??CSimpleApp\Include\Common.h
?????文件???????1603??2000-11-29?07:39??CSimpleApp\Include\ConfigureCom.h
?????文件???????2023??2002-10-28?12:51??CSimpleApp\Include\configuredpr.h
?????文件???????2130??2002-05-20?15:50??CSimpleApp\Include\ConfigureEthernet.h
?????文件???????1529??2000-06-29?09:43??CSimpleApp\Include\ConfigureISA.h
?????文件??????23888??2005-04-25?16:35??CSimpleApp\Include\Copy?of?Runtime.cpp
?????文件???????4200??1998-06-09?16:01??CSimpleApp\Include\devioctl.h
?????文件????????924??2001-01-10?07:13??CSimpleApp\Include\dialog.h
?????文件???????7664??2001-10-08?05:56??CSimpleApp\Include\download.h
?????文件???????1616??2000-07-25?09:15??CSimpleApp\Include\DownloadFirmwareDlg.h
?????文件??????14344??2002-10-25?10:51??CSimpleApp\Include\dpr.h
?????文件??????14993??2000-03-17?09:21??CSimpleApp\Include\Dprbkg.h
?????文件??????10521??2002-02-26?12:52??CSimpleApp\Include\DPROTLIB.H
?????文件??????12571??2000-03-02?09:40??CSimpleApp\Include\DPRRealT.h
?????文件??????13220??1999-02-02?10:01??CSimpleApp\Include\dprtoken.h
?????文件???????6377??1999-02-02?10:01??CSimpleApp\Include\gather.h
?????文件???????1496??2000-09-28?12:09??CSimpleApp\Include\InterruptTask.h
?????文件???????3035??2001-07-16?11:57??CSimpleApp\Include\INTR.H
?????文件???????4797??2002-03-25?08:08??CSimpleApp\Include\li
?????文件???????3604??1999-02-02?10:01??CSimpleApp\Include\lips.h
............此處省略50個(gè)文件信息
- 上一篇:世界名畫陳列館問(wèn)題代碼
- 下一篇:VS與串口通信
評(píng)論
共有 條評(píng)論