Jump to content

Recommended Posts

Posted

I need help! I try to open an AVI file (it's an MPEG actually) with (Windows') AVIFileOpen in .NET 3.5 - on Vista. Each time I call the method I get as result: AVIERR_BADPARAM. I tried also to convert the video to a WMV and AVI (DV-AVI). Nothing worked. Always the same error.

 

I have read that this is because of no valid codec or that the format is not recognized. I have installed ffdshow and MovieMaker, WMP and*WMP Classic are able to play the file.

 

Anybody having an idea what I'm doing wrong?

 

The mapping to the function would be:

 

[DllImport("avifil32.dll", PreserveSig=true)]

public static extern int AVIFileOpen(

***out int ppfile,

***[MarshalAs(UnmanagedType.LPTStr)] string szFile,

***uint uMode,

***int pclsidHandler);

 

Even removing the MarshalAs doesn't help... I'm really running out of options...

 

More...

 

View All Our Microsft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...