在ISAPI中怎样获得服务器地址?(100分)

  • 主题发起人 主题发起人 hstod
  • 开始时间 开始时间
H

hstod

Unregistered / Unconfirmed
GUEST, unregistred user!
在asp中可以通过server.mappath("../../db.mdb")获得db.mdb数据库在服务器上的路径,在isapi中怎样获得?文件所在的路径,谢谢了
 
自己先顶
 
是太简单还是分不够???我急用大家帮帮忙!谢谢了
 
用mts吧


TASPObject is the base class for Active Server pages when using IIS 3 or IIS 4.

Unit

AspTlb

Description

When you specify page-level event methods, the Active Server Object wizard generates a TASPObject descendant to implement the Automation server object that is embedded in its generated Active Server Page. The generated Active Server Page instantiates the TASPObject descendant by calling Server.CreateObject.

In addition to the support for the IDispatch interface that it inherits from TAutoObject, TASPObject supports the IASPObject interface. This interface introduces two methods:

OnStartPage, which ASP calls when the Active Server Page is opened in a user抯 Web Browser.
OnEndPage, which ASP calls when the Web browser closes the Active Server Page.

TASPObject implements these methods to provide support for its properties, which surface the ASP intrinsics (built-in Application, Session, Server, Request, and Response objects).
 
谢谢了!终于有人回了!
可是我的项目块收尾了!改是来不及了
 
请各位大侠帮帮忙,谢谢了!
 
没人会吗???????????????
苦呀!!
 
接受答案了.
 
WebApplication.ApplicationPath
OK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
后退
顶部