Hi,
I am creating the avi file using the bmp file in vs2013 x64 and successfully created the avi file. when i am using this avi file for converting to wmv file and checking AVIERR_OK with the AVIFileOpen() then gives message with AVIERR_FILEOPEN("Error while opening AVI file ").
< AVIFileInit();
hr = AVIFileOpen(&pAVIFile, infile, OF_SHARE_DENY_NONE, NULL);
if (FAILED(hr))
{
if (hr == AVIERR_BADFORMAT) MessageBox(NULL, "Bad AVI Format !", "", 0);
if (hr == AVIERR_MEMORY) MessageBox(NULL, "Insufficent Memory !", "", 0);
if (hr == AVIERR_FILEREAD) MessageBox(NULL, "Error while reading from AVI file !", "", 0);
if (hr == AVIERR_FILEOPEN) MessageBox(NULL, "Error while opening AVI file !", "", 0);
if (hr == REGDB_E_CLASSNOTREG) MessageBox(NULL, "No process handle !", "", 0);
break;
}
hr = AVIFileGetStream( pAVIFile, &pVideoStream, streamtypeVIDEO, 0 );
if( FAILED( hr ) )
break;
>
getting "Error while opening AVI file" message.please help me.
I am using visual studio 2013 x64 in Windows7.
This code is working fine with 32 bit vs2010.