PSS ID Number: Q147122
Article Last Modified on 12-7-2001
When 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.
The 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().
Edit the DLLGetClassObject() function found in the Cf.cpp file of the
AUDIOSD sample as described below and recompile the sample:
This behavior is by design.
Additional query words: SAPI 1.00
Keywords: kbmm
Issue Type:
Technology: