Autor Beitrag
Killi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Do 20.11.03 10:47 
Hi!

Habe jetzt in Delphi6 ne ServiceApplication gemacht - will damit eigentlich erreichen, dass ein Programm als Service gestartet wird (vor der Win-Anmeldung) - deshalb hab ich in die Prozedur Execute folgendes gschrieben:

ausblenden Quelltext
1:
2:
3:
4:
procedure TService1.ServiceExecute(Sender: TService);
begin
        ShellExecute(hwnd(self), 'open', 'C:\test.exe', nil, nil, SW_SHOW);
end;


und mit Start/Ausführen/Pfad der ServiceAppl. -install habe ich es anscheinend korrekt installiert - nur passiert nach dem Neustart NICHTS!
Was fehlt, was muss ich reinpacken, mit der Suche komm ich auch nicht weiter...!

_________________
----
Life is hard and then you die
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 20.11.03 11:33 
Schau dir mal das Service-Tutorial von Assarbad an... (www.assarbad.org), allerdings hab ich das Gefühl dir fehlen noch einige Grundlagen in dieser Richtung und Services sind nunmal etwas komplizierter...!

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

Win*
D6 Prof
BeitragVerfasst: Do 20.11.03 15:07 
so, jetz gehts :-P

brauch nur n Befehl wie ich mein externes Programm mit nem wait Befehl aufrufen kann, sodass es nicht wieder gleich geschlossen wird!
Kann mir da jmd. helfen?

_________________
----
Life is hard and then you die