Autor Beitrag
qball
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 47



BeitragVerfasst: Di 02.12.03 21:56 
Wie kann ich das Ausführen einer Prozedur erst nach Eingabe eines Passworts autorisieren?
mstuebner
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 132

Win2000, XP
D7
BeitragVerfasst: Di 02.12.03 22:06 
qball hat folgendes geschrieben:
Wie kann ich das Ausführen einer Prozedur erst nach Eingabe eines Passworts autorisieren?

Zum Beispiel indem Du den Aufruf der Prozedure in eine IF a la

IF (pwd = whatsoever) then meine_procedure;

packst.

_________________
mfg Matthias
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mi 31.12.03 16:35 
Hallo,

ja, das ist OK so. Aber ich verstehe es nicht. Willst du damit verhindern, dass ein Programmierer eine Funktion aus deiner DLL nur mit Passwort Anwenden kann? In diesem Fall muss das IF in die Prozedur, also z.B. so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure Do Something(Pwd: string);
begin
  if (Pwd <> 'PASSWORT') then
    Exit;
  { ... }
end;


Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt

_________________
Life is a bad adventure, but the graphic is really good!