Help with COM Interop

0

I was trying to use this example with VS 2010. When I run the code A COM exception is thrown with the error code HRESULT: 0x80040216. How can I troubleshoot this issue. I can't find something meaningful when I google it.

Thanks.

.net
interop
asked on Stack Overflow Dec 15, 2010 by Ikaso

2 Answers

1

The error is VFW_E_NOT_FOUND, which is defined in the old C/C++ header file "vfwmsgs.h", if it happens on the RenderFile method call, it means the file is just not there.

answered on Stack Overflow Dec 15, 2010 by Simon Mourier
0

Ok I find the problem. The problem was that the media control could not find the avi file I was trying to play. When I copied the file to the application directory everything worked. So if you have this error check that the file you want to play is on the correct path.

answered on Stack Overflow Dec 15, 2010 by Ikaso

User contributions licensed under CC BY-SA 3.0