G
graphicsxp
Hi,
I'm desperately trying to create a dll, register it and then use it as
an ActiveX object.
My vb.net windows class library :
Namespace myMSN
Public Class Msg
Public Sub New()
End Sub
Public Function Display() As Boolean
MsgBox("hello world")
Return True
End Function
End Class
End Namespace
I then use regasm /tlb msn.dll (the name of my project is called msn
that's why i get a dll called msn.dll when I compile it)
Then when I create my ActiveX in JScript:
var vbDotNetObject = new ActiveXObject("myMSN.Msg");
vbDotNetObject.Display();
I get an error saying that an ActiveX component cannot create an
object.
What am I doing wrong, and at which step ?
Thank you
I'm desperately trying to create a dll, register it and then use it as
an ActiveX object.
My vb.net windows class library :
Namespace myMSN
Public Class Msg
Public Sub New()
End Sub
Public Function Display() As Boolean
MsgBox("hello world")
Return True
End Function
End Class
End Namespace
I then use regasm /tlb msn.dll (the name of my project is called msn
that's why i get a dll called msn.dll when I compile it)
Then when I create my ActiveX in JScript:
var vbDotNetObject = new ActiveXObject("myMSN.Msg");
vbDotNetObject.Display();
I get an error saying that an ActiveX component cannot create an
object.
What am I doing wrong, and at which step ?
Thank you