用VB编写DLL文件,调用有关问题

用VB编写DLL文件,调用问题小弟写了个DLL代码如下:PublicFunctiongetstr()hlosThisisserverActivex EndF

用VB编写DLL文件,调用问题
小弟写了个DLL代码如下:
Public   Function   getstr()
hlos   =   "This   is   server   Activex "
End   Function
后来想在ASP中调用是这样写的:
<%Set   obj1=Server.CreateObject( "xuweis.getstr ")
xuweistr=obj1.hlos
REsponse.Write(xuweistr)%>
上面这样写有错吗?
为什么会提示创建对象失败,请教各位大哥大姐。


[解决办法]
xuweis.getstr应该是工程名.类名,
<%Set obj1=Server.CreateObject( "你的工程.类名 ")
xuweistr=obj1.getstr
REsponse.Write(xuweistr)%>
下面的也有错误:
Public Function getstr()
hlos = "This is server Activex "
End Function
改为:
Public Function getstr() as string
getstr = "This is server Activex "
End Function