-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Mark Derricutt
Sent: Thursday, 16 August 2001 1:08 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Some ISAPI Questions...
All I do for this is:
var
Path: array[0..MAX_PATH - 1] of Char;
s
All I do for this is:
var
Path: array[0..MAX_PATH - 1] of Char;
sDir: string;
begin
SetString(sDir, Path, GetModuleFileName(HInstance, Path, SizeOf(Path)));
sDir := ExtractFilePath(sDir);
.
end;
--On Thursday, 16 August 2001 11:58 a.m. +1200 C Fraser
<[EMAIL
the following function may be useful to return where the dll resides:
function GetDLLName : String;
var
Buffer: array[0..MAX_PATH{260}] of Char;
begin
SetString(Result, Buffer, GetModuleFileName(HInstance, Buffer,
SizeOf(Buffer)))
end;
use extractfilepath(GetDLLName) if you only want the pat
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,
I had the same problem a while back when i wrote an ISAPI DLL to execute
proprietery scripts. I ended up using the SCRIPT_NAME server variable to
find out the name of the script being called and then extract the path.
ie
/example/scriptname.jasp
or if your calling the isapi dll directly
/examp