Autor Beitrag
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Mo 05.06.06 16:35 
Hi,
ich habe ein Problem mit:
ausblenden Delphi-Quelltext
1:
PostMessage(FindWindow(nil,pchar('Kalenderchen'),WM_Quit, 0, 0);					

Da kommt der Fehler:
Zitat:
[Fehler]Unit1.pas(27): Zu viele wikliche Parameter
[Fehler]Unit1.pas(27): Zu viele wikliche Parameter

Was mache ich falsch?
Leuchtturm

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 05.06.06 16:40 
fehlt ne klammer nach pchar(xxxx) :roll:

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Mo 05.06.06 16:45 
Wenn ichs so versuche:
ausblenden Delphi-Quelltext
1:
PostMessage(FindWindow(nil,(pchar('Kalenderchen'))WM_Quit, 0, 0);					

funktionierts auch nicht.
PS: in meinem erstem Beitrag ist nach pchar(xxxx) dei fette Klammer

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 05.06.06 16:49 
jetzt fehlt noch ein komma :rofl:

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Mo 05.06.06 16:51 
Kann passieren
Danke

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Mo 05.06.06 17:19 
:gruebel: :
PostMessage(FindWindow(nil,(pchar('C:\Programme\Kalenderchen\Kalenderchen.exe')),WM_CLOSE, 0, 0); so gehts auf einmal nicht mehr
Das vestehe ich nicht :gruebel: :gruebel: :gruebel: :gruebel:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 05.06.06 17:20 
jetzt hast du ne klammer zu viel vor pchar

ausblenden Delphi-Quelltext
1:
PostMessage(FindWindow(nil, PChar('C:\Programme\Kalenderchen\Kalenderchen.exe')), WM_CLOSE, 0, 0);					

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Mo 05.06.06 17:24 
Jetzt start Delphi das Programm.
Aber das zuschließende Programm wird nicht geschlossen.
PS: Kann das daran liegen das ich einen Task und kein offenes programm schließen will.
PPS: ich habe auch nichts gegen Alternativen, auch wenn das programm nicht mehr zum speichern von Dateien kommt

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 05.06.06 17:37 
liegt wohl daran, das das Programm nicht 'c:/.....' heißt :mrgreen:

EDIT: Gib den Fenstertitel an ;)

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Di 06.06.06 15:42 
Also wenn ich das eingebe was inv dem Formular des zu schließendem Programmes steht, passiert wieder nichts.
Das Programm ist in der Taskleiste(vieleicht ist das wichtig) :nixweiss:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.