The information in this article applies to:
SYMPTOMSWhen an application attempts to create an instance of the CLSID_MyAudioSource or CLSID_MyAudioDest object contained in the AUDIOSD.DLL, CoCreateInstance() returns an HRESULT of E_FAIL. CAUSEThe DllGetClassObject() function in the AUDIOSD sample will always fail because it compares the CLSID passed into CoCreateInstance() with CLSID_MMAudioSource and CLSID_MMAudioDest rather than the correct CLSID_MyAudioSource and CLSID_MyAudioDest. This will cause DllGetClassObject() to return E_FAIL, which in turn is returned from CoCreateInstance(). RESOLUTION
Edit the DLLGetClassObject() function found in the Cf.cpp file of the
AUDIOSD sample as described below and recompile the sample:
STATUSThis behavior is by design. Additional query words: SAPI 1.00
Keywords : kbmm MMSpeech |
Last Reviewed: March 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |