Autor Beitrag
Mossi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99
Erhaltene Danke: 2

Win XP, Linux
D7 Enterprise, K3 Prof
BeitragVerfasst: Di 09.03.04 20:49 
Ich such nach einer Möglichkeit, wie ich zur Laufzeit innerhalb einer DLL dessen vollen Dateinamen ermitteln kann.
Also ähnlich wie Application.ExeName oder ParamStr(0) aber eben nur auf eine DLL bezogen.

Die oben genannten beiden Methoden liefern zur Laufzeit leider nur den Dateinamen der ausführenden Application.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 09.03.04 20:58 
Probier mal das:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
var
  szBuffer: array [0..MAX_PATH] of Char;

GetModuleFileName(hInstance, szBuffer, MAX_PATH);

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!