View Full Version : VideoReDo.tlb and Visual Studio 2005
rhinton
06-09-2006, 11:32 PM
Can VideoReDo.tlb be referenced in Visual Studio 2005?
Should be no problem. Works well in VS6 and VS2003. Did you try it?
rhinton
06-10-2006, 02:48 PM
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.
Harry
06-10-2006, 03:45 PM
it works in VS C# 2005
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
06-11-2006, 05:17 PM
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
06-13-2006, 02:14 PM
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%20Interface.htm?
Thanks rjhinton
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.