Autor Beitrag
Stoffel1984
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Do 09.10.03 14:23 
Hallo,

ich habe ein Programm das in einer Komponente (Datenank-Connection) den Connect Path setzt. Dazu lasse ich mein Programm ExtractFilePath ausführen. Im normalen Programm geht es reibungslos nur in der DLL geht es nicht. Ich habe schon beide Versionen ParamStr(0) und Application.Exename ausprobiert, aber keine funktioniert. Ich bekomme dann eine Exception. Weis jemand Rat oder hat schon jemand Erfahrungen damit gemacht?


Stoffel
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 09.10.03 14:31 
Wäre vielleicht noch interessant zu wissen welche Exception.. :roll:
Und der genaue Code wär vielleicht auch nicht schlecht...

Achja, eine Alternative wäre noch GetModuleFilename...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Stoffel1984 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Do 09.10.03 18:36 
Sorry Motzi...

war etwas voreilig. Lag an einem fehlerhaften DLL Aufruf.

Nichts für Ungut,

Stoffel