Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Reflection Class in VB6

Hello,

Which dll we can use in Visual Basic if we want the features of System.Reflection [.NET]?
I like to read all properties, methods and events of a particular control or dll written in VB6 and I like to invoke some methods of dll from another application. Using Reflection in .NET, these task is very easy for developers.
How about in VB6?
Thanks in advance.
Any Idea would be greatly appreciated..
[428 byte] By [Sync] at [2007-11-11 7:19:49]
# 1 Re: Reflection Class in VB6
http://www.google.com/search?q=typelib+information
Phil Weber at 2007-11-11 17:27:12 >
# 2 Re: Reflection Class in VB6
Thank you. Phil. :) It's very useful for me.
Actually, I was also finding about this in google but i used wrong keyword like "VB6 Reflection Class" or etc....
Thanks again..
Sync at 2007-11-11 17:28:12 >
# 3 Re: Reflection Class in VB6
Hello,

Could anyone please tell me the way to get the function that has a specific tag?
Suppose I'm creating automation project. I have to create two project, one for writing automation script [eg: ControlTestingScript Project] and another for testing script from frist project [ eg: ControlTester Project]. In ControlTestingScript project, I write one procedure as following to test one property of control..

[Test]
Public Sub Control_BackColorTesting()
'.........
End Sub

I like to get this method of ControlTestingScript.exe from ControlTester, then I like to invoke this method. [In .NET, we can invoke easily using System.Reflection.]. I tried to get this method of ControlTestScript.exe using TypeLib but one error come out "The specified file could not be found, or the file doesn't contain a valid typelib."

How can i access and invoke all methods of ControlTestScript.exe?

Thanks in advances.
Sync at 2007-11-11 17:29:10 >