VideoReDo.tlb and Visual Studio 2005

rhinton

New member
Dan,
Here's the responce I got from VS 2005 when I tried to add VideoReDo.tlb as a reference in a Visual Basic Windows Project.

A reference to 'c:\program files\VideoReDoPlus\473\VideoReDo.tlb' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
 

Danr

Administrator
You may need to create a videoredo.dll using the VS2005 TLBIMP. Please see this article for some additional info:

http://www.dnjonline.com/article.aspx?ID=sep01_COMtodotNET

After creating the videoredo.dll using TLBIMP, I would reference the IVideoReDo object. Don't have vb.net loaded, but I'm sure it works the same. VS2005 should have been able to load the .tlb directly, but it wouldn't on my machine. Have no idea why. Maybe a conflict with VS2003?


 

rhinton

New member
Dan,
Using TMPIMP alouded me to generate a new VideoReDo.dll That I could reference in a VB project. When I run the following code.

Public Class Form1
Private Vrd As New myvrdplus.VideoReDo
Private iVrd As myvrdplus.IVideoReDo

Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
OpenFileDialog1.ShowDialog()
End Sub

Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
iVrd = Vrd
Vrd.FileOpen(OpenFileDialog1.FileName)
End Sub
End Class

an instance of the VideoReDo program starts, Form1 Starts but when I try to open a Mpeg or Vprj file I get the following error message.

Unable to cast COM object of type 'myvrdplus.VideoReDoClass' to interface type 'myvrdplus.IVideoReDo'. This operation failed because the QueryInterface call on the COM component for the interface with IID

Any clues where I might be going wrong?
 

rjhinton

New member
Dan,
Ok, so here's how I got it to work. I looked at the code posted by Lawrence for his Auto Ad-Scan program and came up with

Private Vrd As Object = CreateObject("VideoReDo.Application")

to create an instance of VideoReDo. I don't get to use the IntelliSense feature of VS2005 but it does work, kind of. When I use the FileOpen method to open a .Vprj file the scene list from the project file is not loaded. I have to open the .Vprj file with the VideoReDo application to restore the scene list.

I noticed that in the iVideoReDo interface there is a method named ClearCutList. Is it the same as the ClearAllSelections method listed in the documentation found at http://www.videoredo.com/COM Interface.htm?

Thanks rjhinton
 

Nauman

New member
Hi
I need your Help please :)

I have run VideoReDo in VS2008 C# using VideoReDo.tlb and then making DLL but i want to show the Video Editing/Display on my C# Form and not on VideoReDo Application to popup :confused: Any ideas how can i do that ?
 

Danr

Administrator
You can't do that with the VideoReDo Application. You need the VideoReDoEditOCX which is a control you can drop into your own application. It primary audience are companies who wish to embed video editing into their own application. It also has different licensing structure than our consumer product both in terms of deployment and costs (much higher).

If you want evaluate the sdk and learn more about pricing, please send an email to us at sales @ videoredo.com
 
Top Bottom