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 PROTECTED]> wrote:
> 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.
--
Vi de udødelige inviterer dere til å slå dere sammen med oss
---------------------------------------------------------------------------
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/