DMUS_E_LOADER_NOCLASSID

Started by
0 comments, last by peter86 21 years, 6 months ago
I get this error message: DMUS_E_LOADER_NOCLASSID, when calling IDirectMusicLoader::GetObject(). What´s wrong? Here´s the code:
    
DMUS_OBJECTDESC* pDesc = new DMUS_OBJECTDESC;
memset(pDesc, 0, sizeof(pDesc));
pDesc->dwValidData = DMUS_OBJ_FILENAME;
wcsncpy( wszPath, pDesc->wszFileName, MAX_PATH );

if( FAILED( hr = g_pMusicLoader->GetObject( pDesc, IID_IDirectMusicSegment8, (void**)g_pMusicPerformance )))
{
	//...

}
    
[edited by - peter86 on October 3, 2002 3:24:28 PM]
Advertisement
pDesc->guidClass = CLSID_DirectMusicSegment;
pDesc->dwValidData = DMUS_OBJ_CLASS | DMUS_OBJ_FILENAME | DMUS_OBJ_FULLPATH;


Jim Adams
home.att.net/~rpgbook
Author, Programming Role-Playing Games with DirectX
and Focus On: Advanced Animation with DirectX

This topic is closed to new replies.

Advertisement