Autor Beitrag
Fabian E.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: Sa 06.10.07 19:17 
Hallo zusammen!

ich habe ein problem mit shellexecute.
ich habe folgende ordnerstrucktur:

Haupterverzeichnis mit HauptExe
-->Unterverzeichnis mit auszuführender Exe und zugehörigen Dateien

nun möchte ich mit einem programm im hauptverzeichns eine exe im unterverzeichnis öffnen
dies habe ich dann mit ShellExecute(Handle,'open',PChar(ExtractFilePath(ParamStr(0))+'\TD\Towerdefence_fear.exe'),nil,nil,SW_SHOW); realisiert.
das klappt auch schon ganz gut, nur gibt es ein problem: das programm welches ich öffnen möchte wird nicht richtig ausgeführt!(näheres im Bildanhang)

wäre nett wenn mir jemand helfen könnte!

MfG
Einloggen, um Attachments anzusehen!
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Sa 06.10.07 19:31 
Wahrscheinlich verwendest du im eigentlichen Programm relative Pfade, und da der Pfad so auf dem des Loaders stehen, kommt nix bei raus.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Fabian E. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: Sa 06.10.07 19:49 
ja danke...du hast recht...auch wenns frustrierend ist...
jetzt darf ich 100 pfadangaben ändern...:( naja c'est la vie;)