Получить установочную директорию COM или WebService-DLL



Оформил: DeeCo

uses
   ComServ, SysUtils;

 function GetDirectory: string;
 // This function returns the directory where the DLL (or ocx) is installed. 
// Also works in webservices 
// With DLL's you cannot use "Paramstr(0)" because this will give a false value 
begin
   Result := IncludeTrailingBackslash(ExtractFileDir(ComServer.ServerFileName));
 end;

Copyright © 2004-2025 "Delphi Sources" by BrokenByte Software. Delphi World FAQ

Группа ВКонтакте