NewsBot
1
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
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