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 )))
{
//...
}
DMUS_E_LOADER_NOCLASSID
I get this error message: DMUS_E_LOADER_NOCLASSID, when calling IDirectMusicLoader::GetObject(). What´s wrong?
Here´s the code:
[edited by - peter86 on October 3, 2002 3:24:28 PM]
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
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
Popular Topics
Advertisement