Главная страница
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.048 c
11-1113730712
thaddy
2005-04-17 13:38
2005.12.25
KOL Extended registry object. Testers wanted!


2-1134390880
De1uxe
2005-12-12 15:34
2005.12.25
Где ошибка?


14-1133507050
Ega23
2005-12-02 10:04
2005.12.25
С днем рождения! 2 декабря


2-1134294907
Kot
2005-12-11 12:55
2005.12.25
Реидексация


1-1133027361
SergP
2005-11-26 20:49
2005.12.25
Прерывание Thread из-за исключения...