Microsoft SAPI (tts) problem
-
Dear all, Is there anyone familiar with the Microsoft SAPI (text-to-speech)? I have tried to write a program by using SAPI 4.0, however, I got these errors. Can anyone help me how to solve it? Waiting for you sincere reply. Thx a lot. --------------------Configuration: tts - Win32 Debug-------------------- Linking... ttsDlg.obj : error LNK2001: unresolved external symbol _CLSID_TTSEnumerator ttsDlg.obj : error LNK2001: unresolved external symbol _IID_ITTSEnumA ttsDlg.obj : error LNK2001: unresolved external symbol _IID_ITTSBufNotifySink Debug/tts.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. tts.exe - 4 error(s), 0 warning(s)
-
Dear all, Is there anyone familiar with the Microsoft SAPI (text-to-speech)? I have tried to write a program by using SAPI 4.0, however, I got these errors. Can anyone help me how to solve it? Waiting for you sincere reply. Thx a lot. --------------------Configuration: tts - Win32 Debug-------------------- Linking... ttsDlg.obj : error LNK2001: unresolved external symbol _CLSID_TTSEnumerator ttsDlg.obj : error LNK2001: unresolved external symbol _IID_ITTSEnumA ttsDlg.obj : error LNK2001: unresolved external symbol _IID_ITTSBufNotifySink Debug/tts.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. tts.exe - 4 error(s), 0 warning(s)
The simplest way to solve such type of problems (linking problems) is to search these strings (like ITTSBufNotifySink) in all *.lib files. Than you must link (via Alt+F7 or #pragma comment) this lib-file to your project. Btw, many MSDN articles describes that libs are needed for the code they describes. With the best regards, Vitaly.