Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.12.25;
Скачать: CL | DM;

Вниз

Путь запуска dll   Найти похожие ветки 

 
fun   (2005-12-09 18:00) [0]

Как dll узнать из какого каталога ее запустили ?


 
Alexander Panov ©   (2005-12-09 18:16) [1]

function CPath: String;
var
   p: array[0..1024] of Char;
   n: Integer;
begin
   n := GetModuleFileName(HINSTANCE,@p[0],1024);
   Result := "";
   if n>0 then
   begin
       SetLength(Result,n);
       Move(p[0],Result[1],n);
   end;
end;

DllPath := ExtractFilePath(CPath);


 
begin...end ©   (2005-12-09 18:52) [2]

> Alexander Panov ©   (09.12.05 18:16) [1]

function CP: string;
var
 P: array [0..MAX_PATH] of Char;
begin
 if GetModuleFileName(HInstance, P, sizeof(P)) > 0 then
   Result := P
 else
   Result := ""
end



Страницы: 1 вся ветка

Текущий архив: 2005.12.25;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.039 c
1-1133163488
Alp
2005-11-28 10:38
2005.12.25
Диаграммы Excel


2-1133856902
Alex7
2005-12-06 11:15
2005.12.25
операция "in"


2-1134047013
GanibalLector
2005-12-08 16:03
2005.12.25
PostMessage


2-1133902863
Конопелька
2005-12-07 00:01
2005.12.25
Hint Message in system tray !


5-1118821158
Anatoly
2005-06-15 11:39
2005.12.25
Форма c компонентом при ткрытии в design дает "Error creating"