Autor Beitrag
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 04.04.04 09:34 
Hi,

wie sag ich Delphi, dass wenn der User das Prog., das ich programmiert hab, startet, etwas ausgeführt wird.
Aber nur 1 mal. Also praktisch nur beim 1. Start, soll z.B. eine Meldung kommen.
Wie mach ich sowas?

Cya
GTA-Place

Moderiert von user profile iconTino: Titel geändert.
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: So 04.04.04 09:57 
Ganz einfach - in die Registry einen Wert eintragen, ob das Programm schon einmal gestartet wurde
und bei jedem Start auslesen. Ist der Wert vorhanden, Nachricht anzeigen, Wert schreiben (setzen), falls nicht - dann einfach ein normaler Start!

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca