#include "stdafx.h" #include "SpeechApi40aLexicon.h" #include #include #include #include #include #include #include #include #include "SAPI 4.0/Include/speech.h" //#include //------------------------------------------------------------------------------ SpeechApi40aLexicon::SpeechApi40aLexicon(HWND window, ITTSCentralW *tts_central) : m_window(window), m_tts_central(tts_central) { } //------------------------------------------------------------------------------ SpeechApi40aLexicon::~SpeechApi40aLexicon() { } //------------------------------------------------------------------------------ bool SpeechApi40aLexicon::display() { if (!m_tts_central) { return false; } ITTSDialogs *tts_dialogs = 0; m_tts_central->QueryInterface(IID_ITTSDialogs, (void**)&tts_dialogs); if (!tts_dialogs) { return false; } if (NOERROR != tts_dialogs->LexiconDlg(m_window, NULL)) { return false; } tts_dialogs->Release(); return true; }