On 16 Aug 2001, at 11:58, C Fraser wrote:

> Hi all,
> 
> I just have some questions on building ISAPI dlls.
> 
> First... I want to find the dir where my dll is running.  The
> PathTranslated seems to return wrong information. From the documentation
> it looks like PathTranslated is what I want, but it doesn't work as
> expected. 
> 
> On the web server machine I have a Home directory as D:\Inetpub\wwwroot
> (not to sure what a home directory exactly means). I also have a virtual
> directory /Test which points to D:\InetPub\Test. My ISAPI ISAPITest.dll
> is located in D:\InetPub\Test\Scripts.  
> 
> From a web browser, I can go
> computername/Test/Scripts/ISAPITest.dll/Test and I get a path translated
> D:\Inetpub\Test which is correct, all fine and dandy.
> 
> Then I go computername/Test/Scripts/ISAPITest.dll/Test2 and I get a path
> translated D:\Inetpub\wwwroot\Test2. 
> 
> So it seems if my URL path matches my directory path all seems to work.
> If my URL path does not match (which will usually be the case) I get the
> home directory coming in.
> 
> To summarise... I am a bit confused! I just want to get the path to my
> dll in code so I can use this in the generated html scripts to make it
> easier to move the dll from server to server, directory to directory...
> 
> I have other questions... But I shall try and solve this one first.
> 
> Any help appreciated.

I think the best thing will be to take a look at the demo of  web 
server application, it'll answer all ur questions

Sandeep

Software Developer
CFL
[EMAIL PROTECTED]
http://www.cfl.co.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to