How do I play a video through .net in windows 7
Posted
by
Mykroft
on Stack Overflow
See other posts from Stack Overflow
or by Mykroft
Published on 2011-02-24T15:22:55Z
Indexed on
2011/02/24
15:25 UTC
Read the original article
Hit count: 205
I had setup an app to play a video using the library suggested here this worked great for me for a long time until my machine was upgraded. In windows 7 I get the following exception that I'd never seen under XP:
`System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at MainApp.Controls.MediaControl.StopVideo()
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)`
I've installed the June 2010 DirectX SDK and I'm still getting this error. Is there a different library I should be using or some setting that needs to be changed?
© Stack Overflow or respective owner