把APS程序写在DLL文件中,注册后如何在ASP网页中将DLL的内容调出显示在WEB页中?

hrbwzp 2003-12-13 08:01:47
工程名:DBDLL
类名:CONN

public function ShowMSG()
response.write"我的第一个WEB程序"
end function

ASP文件是这样写的:
set con = server.createobject("dbdll.conn")
con.ShowMSG()
set con = nothing
ASP文件代码:
set con=server.createobject("DBDLL.CONN")
con.ShowMSG
set con = nothing
但运行ASP文件代码是出现错误:
错误行是:con.ShowMSG
请各位朋友能帮助解答一下!
...全文
61 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
a_zhe_20 2003-12-13
  • 打赏
  • 举报
回复
你在工程里面应用了Active Server Pages Object了没有?

public function ShowMSG()
showmsg="我的第一个WEB程序"
end function

后面用
response.write con.showmsg
孟子E章 2003-12-13
  • 打赏
  • 举报
回复
http://www.6to23.com/s11/s11d6/200191493944.htm
http://www.yesky.com/20000720/95799.shtml
http://www.yesky.com/20000722/96397.shtml
孟子E章 2003-12-13
  • 打赏
  • 举报
回复
Dim Context As ObjectContext
Dim Server As Server
Dim Request As Request
Dim Session As Session
Dim Response As Response

Private Sub Class_Initialize()
Set Context = GetObjectContext()
Set Server = Context("Server")
Set Request = Context("Request")
Set Response = Context("Response")
Set Session = Context("Session")
End Sub


public function ShowMSG()
response.write"我的第一个WEB程序"
end function

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧