Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 ").

C++
< 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.
Posted
Updated 16-Mar-15 0:39am
v2
Comments
KarstenK 16-Mar-15 6:50am    
is the path correct? Try a simple CopyFile to test...
isantosh85 16-Mar-15 6:57am    
Thanks for response.The path is correct and working with the 32 bit vs2010.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900