PRB: AUDIOSD Sample Returns E_FAIL from CoCreateInstanceLast reviewed: February 22, 1996Article ID: Q147122 |
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().
RESOLUTIONEdit 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 reference words: SAPI 1.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |