I have been using VideoReDo for years and need to develop an C# application that converts video files differently than is available using Batch Manager. I am having difficulty getting things working so I have a few questions that I hope can be answered here.
My development environment is C#, VS 2019, 64 bit using WPF. I have created a new VideoReDoTypeLib.dll using the latest version of VideoRedo v6. I am trying to use this library in the time honoured way in C# rather than using InvokeMember all of the time but when I run the following code:
VideoReDo vrd = new VideoReDo();
bool res = vrd.FileOpen(file.FullName, true);
isSuccess = vrd.FileSaveAs(outFile, VRDProfile);
I keep getting the following error:
Unable to cast COM object of type 'System.__ComObject' to interface type 'VideoReDoTypeLib.VideoReDo'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{8BAC5BE1-FC3B-450E-947D-2C91E8D7DA16}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
I must be missing something pretty fundamental.
Can anyone help, please? Can you point me to some examples that work in C# in a Windows Forms or WPF environment?
Tony
My development environment is C#, VS 2019, 64 bit using WPF. I have created a new VideoReDoTypeLib.dll using the latest version of VideoRedo v6. I am trying to use this library in the time honoured way in C# rather than using InvokeMember all of the time but when I run the following code:
VideoReDo vrd = new VideoReDo();
bool res = vrd.FileOpen(file.FullName, true);
isSuccess = vrd.FileSaveAs(outFile, VRDProfile);
I keep getting the following error:
Unable to cast COM object of type 'System.__ComObject' to interface type 'VideoReDoTypeLib.VideoReDo'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{8BAC5BE1-FC3B-450E-947D-2C91E8D7DA16}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
I must be missing something pretty fundamental.
Can anyone help, please? Can you point me to some examples that work in C# in a Windows Forms or WPF environment?
Tony