I have a vb.net assembly I need to make available as a COM object.
After some Googling, I found this site:
http://www.dnzone.com/ShowDetail.asp?NewsId=126
I followed the steps (substituting my application, class, and function
names) and got no errors during the process.
But now I try to access my library from vbscript, I get a "Can't create
object" error.
So I tried to register it with regsvr32 and get the error:
"DllRegisterSer ver entry point not found"
So something seems to have not gone right, but I don't know enough about COM
to see where. Here's a little sample code from the vb.net library. If anyone
has any ideas I'd be interested to hear them. Thanks!
Assembly code:
Namespace InetEZ
Public Class Util
Public Shared Function GetInfo()
Return "<descrip>M y function library</descrip><versio n>.5
Alpha</version>"
End Function
End Class
End Namespace
-------------------------------
vbscript:
Dim oX, x
Set oX=createobject ("InetEZ.Uti l")
x=oX.GetInfo("" )
MsgBox(x)
Set oX=Nothing