Click here to Skip to main content
13,457,409 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello friends,
I am new in VC++ area and I got class not registered exception from the
HRESULT CAviExtract::OpenAviFile(CString szFile)
    int nNumAudioStreams = 0;
	hr = AVIFileOpen(&m_pAviFile, szFile,  OF_READWRITE, NULL);
	if(hr != S_OK)//Got Class not registered exception here.
	     return hr;

	hr = AVIFileInfo(m_pAviFile, &m_pAviFileInfo, sizeof(m_pAviFileInfo));
	if(hr != S_OK)
             return hr;		
	hr = AVIFileGetStream(m_pAviFile, &m_pAVIVideoStream, streamtypeVIDEO, 0);
	     return hr;
	hr = AVIStreamInfo(m_pAVIVideoStream, &m_pStreamInfo, sizeof(m_pStreamInfo));
	if(hr != S_OK)
	     return hr;		

	return hr;

Please help me to resolve it. I am not using any COM regarding functionality and using Windows XP 32 bit with VS2005.
Posted 2-Jan-13 2:45am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Documentation[^] says it all:
According to the registry, the type of file specified in AVIFileOpen does not have a handler to process it.

Roughly: your system cannot provide you an interface able to play files of that type.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04-2016 | 2.8.180322.1 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100