Autor Beitrag
bruce185
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 283

winXP
D7 Ent
BeitragVerfasst: Mo 20.03.06 05:42 
hi,
also ich habe ein ziemlich grosses problem, die Foren suche hat mir auch nichts gebracht, ich will einfach über Prüfen ob ein Registry eintrag besteht, habe es so versucht:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
if not(regist.KeyExists('Software\Name\RSPRO')) then
begin
  Application.MessageBox('Keinen Eintrag gefunden', 'Achtung!', MB_OK);
end;


egal ob der eintrag besteht, oder nicht besteht, diese Meldung Taucht immer auf, nur wenn der eintrag nicht besteht dann soll die Meldung erscheinen.
habe dieser code selbst hier im Forum kopiert, aber es will einfach nicht funktionieren, wisst ihr vieleicht was ich da falsch gemacht habe?
ich danke euch schonmal für die hilfe :(

gruss andreas
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mo 20.03.06 08:03 
Aber die TRegistry an sich funktioniert? Probier das mal mit nem kurzen Schreibzugriff, vielleicht ist die nur nicht komplett konfiguriert.
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 02.04.06 06:58 
Bist du auch im richtigen (wie nennt man das?) "Bereich", also HKLC, HKLU, ...?

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 02.04.06 08:27 
Nun, zuerst musst du den rootkey setzen, dann mit openkey in das gewünschte Verzeichnis gehen (zB: Software\Name\RSPRO). Die Function liefert automatisch rtue zurück wenn das Verzeichnis existiert.