資源簡(jiǎn)介
在自動(dòng)化生產(chǎn)線VC開發(fā)的運(yùn)動(dòng)控制機(jī)器視覺(jué)程序,XYZ三個(gè)軸有PCI板卡控制,視頻卡采集圖像后經(jīng)算法處理找到圖像的點(diǎn),VC控制步進(jìn)電機(jī)到加膠位置加膠,在機(jī)器上運(yùn)行每日點(diǎn)膠100000次無(wú)故障,
代碼片段和文件信息
//?ASED.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ASED.h“
#include?“MainFrm.h“
#include?“ASEDDoc.h“
#include?“ASEDView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CASEDApp
BEGIN_MESSAGE_MAP(CASEDApp?CWinApp)
//{{AFX_MSG_MAP(CASEDApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CASEDApp?construction
CASEDApp::CASEDApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CASEDApp?object
CASEDApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CASEDApp?initialization
BOOL?CASEDApp::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
HANDLE?m_hMutex=CreateMutex(NULLTRUE?m_pszAppName);?
????if(GetLastError()==ERROR_ALREADY_EXISTS)?
{
AfxMessageBox(“Error!Program?is?Running!“MB_OK|MB_IConstop);
return?FALSE;?
}
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CASEDDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CASEDView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->Sh
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????264432??2013-10-24?09:11??ASED\New?CAPI?ased\ASED.APS
?????文件??????41477??2013-10-24?12:13??ASED\New?CAPI?ased\ASED.clw
?????文件???????5322??2005-03-02?10:36??ASED\New?CAPI?ased\ASED.cpp
?????文件??????10666??2007-07-18?10:47??ASED\New?CAPI?ased\ASED.dsp
?????文件????????533??2005-01-14?10:51??ASED\New?CAPI?ased\ASED.dsw
?????文件???????1334??2005-01-03?10:30??ASED\New?CAPI?ased\ASED.h
?????文件????5841920??2013-10-24?12:54??ASED\New?CAPI?ased\ASED.ncb
?????文件????1643520??2013-10-24?12:54??ASED\New?CAPI?ased\ASED.opt
?????文件???????2288??2011-01-20?14:43??ASED\New?CAPI?ased\ASED.plg
?????文件??????33187??2010-11-10?16:00??ASED\New?CAPI?ased\ASED.rc
?????文件??????17322??2007-08-03?10:51??ASED\New?CAPI?ased\ASEDDoc.cpp
?????文件???????3115??2010-11-10?14:59??ASED\New?CAPI?ased\ASEDDoc.h
?????文件??????22703??2007-07-12?15:16??ASED\New?CAPI?ased\ASEDView.cpp
?????文件???????3507??2011-01-27?15:33??ASED\New?CAPI?ased\ASEDView.h
?????文件??????10590??2010-11-10?14:53??ASED\New?CAPI?ased\AutoRun.cpp
?????文件???????2011??2011-01-27?15:33??ASED\New?CAPI?ased\AutoRun.h
?????文件???????1692??2005-10-24?14:19??ASED\New?CAPI?ased\common\IniFileProc.cpp
?????文件????????740??2005-10-24?14:19??ASED\New?CAPI?ased\common\IniFileProc.h
?????文件????4015104??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASED.bsc
?????文件????1367232??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASED.ilk
?????文件??????32318??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASED.obj
?????文件????6898692??2007-08-03?14:55??ASED\New?CAPI?ased\Debug\ASED.pch
?????文件????1213440??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASED.pdb
?????文件?????228736??2007-08-03?14:55??ASED\New?CAPI?ased\Debug\ASED.res
?????文件??????????0??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASED.sbr
?????文件??????97502??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASEDDoc.obj
?????文件??????????0??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASEDDoc.sbr
?????文件??????82653??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASEDView.obj
?????文件??????????0??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\ASEDView.sbr
?????文件??????47696??2007-08-03?14:56??ASED\New?CAPI?ased\Debug\AutoRun.obj
............此處省略268個(gè)文件信息
評(píng)論
共有 條評(píng)論