Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.024 c
14-1133468035
Lamer@fools.ua
2005-12-01 23:13
2005.12.25
М-да уж :/


2-1133976486
fast2
2005-12-07 20:28
2005.12.25
Как создать dll?


11-1114362587
Zoom
2005-04-24 21:09
2005.12.25
Save to Gif/Png


14-1133624702
GudzonXXX
2005-12-03 18:45
2005.12.25
Интернет


14-1133758400
LordOfRock
2005-12-05 07:53
2005.12.25
И снова музыка




   Наверх