資源簡介
TTS MFC VC6.0

代碼片段和文件信息
//?DlgProxy.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“MixSpeech.h“
#include?“DlgProxy.h“
#include?“MixSpeechDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMixSpeechDlgAutoProxy
IMPLEMENT_DYNCREATE(CMixSpeechDlgAutoProxy?CCmdTarget)
CMixSpeechDlgAutoProxy::CMixSpeechDlgAutoProxy()
{
EnableAutomation();
//?To?keep?the?application?running?as?long?as?an?automation?
// object?is?active?the?constructor?calls?AfxOleLockApp.
AfxOleLockApp();
//?Get?access?to?the?dialog?through?the?application‘s
//??main?window?pointer.??Set?the?proxy‘s?internal?pointer
//??to?point?to?the?dialog?and?set?the?dialog‘s?back?pointer?to
//??this?proxy.
ASSERT?(AfxGetApp()->m_pMainWnd?!=?NULL);
ASSERT_VALID?(AfxGetApp()->m_pMainWnd);
ASSERT_KINDOF(CMixSpeechDlg?AfxGetApp()->m_pMainWnd);
m_pDialog?=?(CMixSpeechDlg*)?AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy?=?this;
}
CMixSpeechDlgAutoProxy::~CMixSpeechDlgAutoProxy()
{
//?To?terminate?the?application?when?all?objects?created?with
//? with?automation?the?destructor?calls?AfxOleUnlockApp.
//??Among?other?things?this?will?destroy?the?main?dialog
if?(m_pDialog?!=?NULL)
m_pDialog->m_pAutoProxy?=?NULL;
AfxOleUnlockApp();
}
void?CMixSpeechDlgAutoProxy::OnFinalRelease()
{
//?When?the?last?reference?for?an?automation?object?is?released
//?OnFinalRelease?is?called.??The?base?class?will?automatically
//?deletes?the?object.??Add?additional?cleanup?required?for?your
//?object?before?calling?the?base?class.
CCmdTarget::OnFinalRelease();
}
BEGIN_MESSAGE_MAP(CMixSpeechDlgAutoProxy?CCmdTarget)
//{{AFX_MSG_MAP(CMixSpeechDlgAutoProxy)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CMixSpeechDlgAutoProxy?CCmdTarget)
//{{AFX_DISPATCH_MAP(CMixSpeechDlgAutoProxy)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
//?Note:?we?add?support?for?IID_IMixSpeech?to?support?typesafe?binding
//??from?VBA.??This?IID?must?match?the?GUID?that?is?attached?to?the?
//??dispinterface?in?the?.ODL?file.
//?{A42D059B-CA11-4E9C-A09C-A1B07F6A821F}
static?const?IID?IID_IMixSpeech?=
{?0xa42d059b?0xca11?0x4e9c?{?0xa0?0x9c?0xa1?0xb0?0x7f?0x6a?0x82?0x1f?}?};
BEGIN_INTERFACE_MAP(CMixSpeechDlgAutoProxy?CCmdTarget)
INTERFACE_PART(CMixSpeechDlgAutoProxy?IID_IMixSpeech?Dispatch)
END_INTERFACE_MAP()
//?The?IMPLEMENT_OLECREATE2?macro?is?defined?in?StdAfx.h?of?this?project
//?{4481EB66-0E3A-4925-B227-C4F255DAADAF}
IMPLEMENT_OLECREATE2(CMixSpeechDlgAutoProxy?“MixSpeech.Application“?0x4481eb66?0xe3a?0x4925?0xb2?0x27?0xc4?0xf2?0x55?0xda?0xad?0xaf)
/////////////////////////////////////////////////////////////////////////////
//?CMixSp
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????143414??2008-09-16?11:16??MixSpeech\Debug\MixSpeech.exe
?????文件???????3035??2008-07-14?14:11??MixSpeech\DlgProxy.cpp
?????文件???????1672??2008-07-14?14:11??MixSpeech\DlgProxy.h
?????文件??????36884??2008-07-17?16:49??MixSpeech\MixSpeech.aps
?????文件???????1894??2008-09-16?11:16??MixSpeech\MixSpeech.clw
?????文件???????2705??2008-07-14?14:11??MixSpeech\MixSpeech.cpp
?????文件???????4555??2008-08-14?10:28??MixSpeech\MixSpeech.dsp
?????文件????????541??2008-08-14?10:28??MixSpeech\MixSpeech.dsw
?????文件???????1357??2008-07-14?14:11??MixSpeech\MixSpeech.h
?????文件?????115712??2008-09-16?11:17??MixSpeech\MixSpeech.ncb
?????文件???????1080??2008-08-15?16:06??MixSpeech\MixSpeech.odl
?????文件??????60928??2008-09-16?11:17??MixSpeech\MixSpeech.opt
?????文件????????252??2008-08-06?17:32??MixSpeech\MixSpeech.plg
?????文件???????6201??2008-07-17?16:49??MixSpeech\MixSpeech.rc
?????文件????????711??2008-07-14?14:11??MixSpeech\MixSpeech.reg
?????文件??????10838??2008-09-16?11:16??MixSpeech\MixSpeechDlg.cpp
?????文件???????3090??2008-08-18?09:35??MixSpeech\MixSpeechDlg.h
?????文件???????4128??2008-08-06?17:49??MixSpeech\MixSpeechRes_CHS.dsp
?????文件????????266??2008-08-06?17:55??MixSpeech\MixSpeechRes_CHS.plg
?????文件???????4568??2008-07-14?14:11??MixSpeech\ReadMe.txt
?????文件??????24576??2008-09-16?11:16??MixSpeech\Release\MixSpeech.exe
?????文件???????1078??2008-07-14?14:11??MixSpeech\res\MixSpeech.ico
?????文件????????401??2008-07-14?14:11??MixSpeech\res\MixSpeech.rc2
?????文件???????1284??2008-07-17?15:58??MixSpeech\resource.h
?????文件??????31602??2008-08-18?09:43??MixSpeech\sapi.cpp
?????文件?????741376??2008-04-13?18:13??MixSpeech\sapi.dll
?????文件??????13758??2008-08-18?09:35??MixSpeech\sapi.h
?????文件????????211??2008-07-14?14:11??MixSpeech\StdAfx.cpp
?????文件???????1742??2008-07-14?14:11??MixSpeech\StdAfx.h
?????目錄??????????0??2008-09-16?11:17??MixSpeech\Debug
............此處省略6個文件信息
- 上一篇:迷宮問題的C++算法實現
- 下一篇:貝葉斯分類算法C++實現
評論
共有 條評論