Hello friends,
I am new in VC++ area and I got class not registered exception from the
AVIFileOpen()
function.
HRESULT CAviExtract::OpenAviFile(CString szFile)
{
int nNumAudioStreams = 0;
try
{
hr = AVIFileOpen(&m_pAviFile, szFile, OF_READWRITE, NULL);
if(hr != S_OK) 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);
if(hr == AVIERR_NODATA || hr == AVIERR_MEMORY)
return hr;
hr = AVIStreamInfo(m_pAVIVideoStream, &m_pStreamInfo, sizeof(m_pStreamInfo));
if(hr != S_OK)
return hr;
}
catch(...)
{
}
return hr;
}
Please help me to resolve it. I am not using any COM regarding functionality and using Windows XP 32 bit with VS2005.