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.
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.
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.
User contributions licensed under CC BY-SA 3.0