ASP高手门帮我看看是什么问题.

来源:百度知道 编辑:UC知道 时间:2024/05/12 16:12:40
用VB6.0编的工程名:first,类名:test (全小写的)

Dim rp As Response
Dim rq As Request
Dim ap As Application
Dim sr As Server
Dim sn As Session

Public Sub OnStartPage(mysc As ScriptingContext)
''进行对象的实例化
Set rp = mysc.Response
Set rq = mysc.Request
Set sr = mysc.Server
Set ap = mysc.Application
Set sn = mysc.Session
rp.Write "<br>ActiveX DLL组件已经被创建了!<br>"
End Sub

Public Sub OnEndPage()
rp.Write "<br>ActiveX DLL组件已经被销毁!<br>"
''销毁对象
Set rp = Nothing
Set rq = Nothing
Set sr = Nothing
Set ap = Nothing
Set sn = Nothing
End Sub

Public Sub HelloWorld()
rp.Write "<H1>Hello,World!</H1>"
End Sub

生成的first.dll(ActiveX dll)

=============================================

在ASP中调用的程序

<html>
<head>
<

first.dll 注册了没有啊

是不是对象不对?。具体的参考一下这里http://www.5inet.net/WebPrograming/ASP/066090.html