Click here to Skip to main content
15,891,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog Position Pin
khlins29-Jul-05 20:49
khlins29-Jul-05 20:49 
GeneralRe: Dialog Position Pin
vishalmore29-Jul-05 21:28
vishalmore29-Jul-05 21:28 
GeneralRe: Dialog Position Pin
khlins30-Jul-05 15:50
khlins30-Jul-05 15:50 
GeneralRe: Dialog Position Pin
ThatsAlok30-Jul-05 4:00
ThatsAlok30-Jul-05 4:00 
Generallinker error Pin
sebinfrancis29-Jul-05 20:11
sebinfrancis29-Jul-05 20:11 
GeneralRe: linker error Pin
sebinfrancis29-Jul-05 23:04
sebinfrancis29-Jul-05 23:04 
GeneralRe: linker error Pin
S. Senthil Kumar29-Jul-05 23:57
S. Senthil Kumar29-Jul-05 23:57 
GeneralSpeech SDK Pin
alex__b29-Jul-05 20:03
professionalalex__b29-Jul-05 20:03 
Hello All,
I'm using the Speech SDK inside a COM module thus:
HRESULT hr;<br />
ISpVoice * pVoice = NULL;<br />
......<br />
hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);<br />
if(! SUCCEEDED(hr)) MessageBox (NULL, "Cant load Voice",NULL,NULL);<br />
else hr = pVoice->Speak(L"Hello World", SPF_DEFAULT, NULL);<br />
......<br />
pVoice->Release();<br />
pVoice = NULL;

It compiles and - amazingly enough - works ok.
Now, if I change the 2nd parameter in Speak() to SPF_ASYNC or SPF_ASYNC | SPF_PURGEBEFORESPEAK, to call it asynchronously, thre is no sound at all.

Confused | :confused:

Thanks

alex

'Architecture is music frozen in space.'
GeneralRe: Speech SDK Pin
Blake Miller1-Aug-05 8:08
Blake Miller1-Aug-05 8:08 
GeneralRe: Speech SDK Pin
alex__b1-Aug-05 17:52
professionalalex__b1-Aug-05 17:52 
GeneralRe: Speech SDK Pin
Blake Miller2-Aug-05 4:01
Blake Miller2-Aug-05 4:01 
GeneralRe: Speech SDK Pin
alex__b2-Aug-05 4:16
professionalalex__b2-Aug-05 4:16 
GeneralRe: Speech SDK Pin
Blake Miller2-Aug-05 4:34
Blake Miller2-Aug-05 4:34 
GeneralRe: Speech SDK Pin
alex__b2-Aug-05 4:43
professionalalex__b2-Aug-05 4:43 
GeneralEthernet/ network question Pin
Stan the man29-Jul-05 17:27
Stan the man29-Jul-05 17:27 
GeneralRe: Ethernet/ network question Pin
geo_m31-Jul-05 10:12
geo_m31-Jul-05 10:12 
GeneralRestricting area in editable HTML user can edit. Pin
David Fleming29-Jul-05 16:35
David Fleming29-Jul-05 16:35 
GeneralRe: Restricting area in editable HTML user can edit. Pin
David Fleming1-Aug-05 20:43
David Fleming1-Aug-05 20:43 
GeneralEdit Box Notification Pin
Member 12742129-Jul-05 14:13
Member 12742129-Jul-05 14:13 
GeneralRe: Edit Box Notification Pin
John R. Shaw29-Jul-05 14:29
John R. Shaw29-Jul-05 14:29 
GeneralRe: Edit Box Notification Pin
Stan the man29-Jul-05 17:13
Stan the man29-Jul-05 17:13 
GeneralVery very stupid question Pin
Lampros Giampouras29-Jul-05 12:53
Lampros Giampouras29-Jul-05 12:53 
GeneralRe: Very very stupid question Pin
John R. Shaw29-Jul-05 13:48
John R. Shaw29-Jul-05 13:48 
GeneralRe: Very very stupid question Pin
Toby Opferman29-Jul-05 14:00
Toby Opferman29-Jul-05 14:00 
GeneralRe: Very very stupid question Pin
John R. Shaw29-Jul-05 14:20
John R. Shaw29-Jul-05 14:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.