Re: Late Binding .....

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Hakan ÖRNEK" <ornekh@xxxxxxxxx> schrieb
Hi,
Actualy I want to write vb script in my code, for example;
'----------------------------------
Public Class TestClass
Public Sub HelloWorld()
MsgBox("Hello World")
End Sub
End Class
'----------------------------------
Compile this code and create Test.Dll
And then, create New Application Test.exe and not to add referance
Test.Dll.
'----------------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim oTest As Object
oTest = CreateObject("Test.TestClass")
oTest.HelloWorld()
End Sub
'----------------------------------

In VB6 Test.dll compiled automaticly register and Latebind in Dll
name (Test.dll) and public class (TestClass), but I think so VB.NET
dll not registered in registery so how can I do this case, I want
to run my code like script.

Thanks for helps again,

Hakan

There is nothing more I can add to what I've already said, sorry. The topics in the documentation desribe in detail how to do it.


Armin

.



Relevant Pages