資源簡介
本程序詳細的實現了如何在VC下面調用Matlab函數進行三維繪圖

代碼片段和文件信息
//?MATLABEngine.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“MATLABEngine.h“
#include?“MATLABEngineDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMATLABEngineApp
BEGIN_MESSAGE_MAP(CMATLABEngineApp?CWinApp)
//{{AFX_MSG_MAP(CMATLABEngineApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMATLABEngineApp?construction
CMATLABEngineApp::CMATLABEngineApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMATLABEngineApp?object
CMATLABEngineApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMATLABEngineApp?initialization
BOOL?CMATLABEngineApp::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
CMATLABEngineDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????35524??2009-03-31?17:28??MATLABEngine\MATLABEngine.aps
?????文件???????1169??2009-04-01?15:43??MATLABEngine\MATLABEngine.clw
?????文件???????2147??2009-03-31?17:17??MATLABEngine\MATLABEngine.cpp
?????文件???????4398??2009-03-31?20:59??MATLABEngine\MATLABEngine.dsp
?????文件????????547??2009-03-31?17:17??MATLABEngine\MATLABEngine.dsw
?????文件???????1390??2009-03-31?17:17??MATLABEngine\MATLABEngine.h
?????文件??????50176??2009-04-01?15:43??MATLABEngine\MATLABEngine.ncb
?????文件??????54784??2009-04-01?15:43??MATLABEngine\MATLABEngine.opt
?????文件????????258??2009-04-01?15:42??MATLABEngine\MATLABEngine.plg
?????文件???????5273??2009-03-31?17:28??MATLABEngine\MATLABEngine.rc
?????文件???????5972??2009-04-01?15:42??MATLABEngine\MATLABEngineDlg.cpp
?????文件???????1443??2009-03-31?17:28??MATLABEngine\MATLABEngineDlg.h
?????文件???????3687??2009-03-31?17:17??MATLABEngine\ReadMe.txt
?????文件???????1078??2009-03-31?17:17??MATLABEngine\res\MATLABEngine.ico
?????文件????????404??2009-03-31?17:17??MATLABEngine\res\MATLABEngine.rc2
????..A.SH.??????3584??2009-03-31?20:39??MATLABEngine\res\Thumbs.db
?????目錄??????????0??2009-03-31?20:39??MATLABEngine\res
?????文件????????690??2009-03-31?17:28??MATLABEngine\resource.h
?????文件????????214??2009-03-31?17:17??MATLABEngine\StdAfx.cpp
?????文件???????1054??2009-03-31?17:17??MATLABEngine\StdAfx.h
?????目錄??????????0??2009-04-01?15:43??MATLABEngine
-----------?---------??----------?-----??----
???????????????173792????????????????????21
評論
共有 條評論