Autor Beitrag
thbi
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 70

Mac OS X 10.4, WIN XP Prof.
D 4 Prof, D 7 Pers, xcode
BeitragVerfasst: Mi 14.09.05 20:52 
Ich kann die IP Adresse einwandfrei lesen aber das schreiben geht nicht. Es kommt keine Fehlermeldung des wegen bin ich ein bischen verwirrt!!!


Hier der Quellcode:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
procedure TForm1.Button1Click(Sender: TObject);
begin

regit:= TRegistry.Create;

try
  if regit.OpenKey('SYSTEM\ControlSet001\Services\{6F990372-5D1A-4AFE-8642-23532207C93C}\Parameters\Tcpip', True) then
  begin
  regit.WriteString('DhcpIPAddress', Edit2.Text);
  regit.CloseKey;
  end else ShowMessage('Schlüssel konnte nicht geöffnet werden.');
finally
regit.free;

  end;
end;


Vielleicht kann man die IP Adresse nicht schreiben aber da würde doch normalerweise ein Meldung kommen, Oder ????

Naja vielleicht könnt ihr mir helfen!!! Danke schonmal!!!



Mfg thbi

Moderiert von user profile iconKlabautermann: Code- durch Delphi-Tags ersetzt.

_________________
Wenn du etwas wirklich gern hast , dann lass es frei, kommt es zu dir zurück gehört es dir, kommt es nicht zurück, dann hat es dir nie gehört...
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: Mi 14.09.05 21:03 
Du hast noch gar keinen Root angegeben.
Vielleicht liegt da das Problem.

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

Mac OS X 10.4, WIN XP Prof.
D 4 Prof, D 7 Pers, xcode
BeitragVerfasst: Mi 14.09.05 21:05 
Danke!!

hab ich voll übersehen!! :oops:

THX


Mfg thbi

_________________
Wenn du etwas wirklich gern hast , dann lass es frei, kommt es zu dir zurück gehört es dir, kommt es nicht zurück, dann hat es dir nie gehört...
thbi Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 70

Mac OS X 10.4, WIN XP Prof.
D 4 Prof, D 7 Pers, xcode
BeitragVerfasst: Do 15.09.05 07:42 
Soweit Funzt des jetzt aber ich glaub ich hab nicht den richtigen Registrieeintrag!!!

Kann mit jemand sagen welcher der richtige Eintrag in der Regestrie ist, welche man die IP der Netzwerkkarte oder W-LAN Karte ist!???

WÄre wirklich hilfreich, danke!!



Mfg thbi

_________________
Wenn du etwas wirklich gern hast , dann lass es frei, kommt es zu dir zurück gehört es dir, kommt es nicht zurück, dann hat es dir nie gehört...
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: Do 15.09.05 18:50 
    HKEY_LOCAL_MACHINE -> System -> ControlSet001 -> Services -> {C2990CA2-3FBC-4D3C-A809-888CBB5A8C73} -> Parameters -> Tcpip -> DhcpIPAddress

    HKEY_LOCAL_MACHINE -> System -> ControlSet001 -> Services -> Tcpip -> Parameters -> Interfaces -> {C2990CA2-3FBC-4D3C-A809-888CBB5A8C73} -> DhcpIPAddress

    HKEY_LOCAL_MACHINE -> System -> ControlSet001 -> Services -> Tcpip -> Parameters -> Interfaces -> {C635A994-2E46-4830-BE56-2385D0311D30} -> DhcpIPAddress

    HKEY_LOCAL_MACHINE -> System -> ControlSet002 -> Services -> {C2990CA2-3FBC-4D3C-A809-888CBB5A8C73} -> Parameters -> Tcpip -> DhcpIPAddress

    HKEY_LOCAL_MACHINE -> System -> ControlSet002 -> Services -> Tcpip -> Parameters -> Interfaces -> {C2990CA2-3FBC-4D3C-A809-888CBB5A8C73} -> DhcpIPAddress

    HKEY_LOCAL_MACHINE -> System -> ControlSet002 -> Services -> Tcpip -> Parameters -> Interfaces -> {C635A994-2E46-4830-BE56-2385D0311D30} -> DhcpIPAddress

    HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Services -> {C2990CA2-3FBC-4D3C-A809-888CBB5A8C73} -> Parameters -> Tcpip -> DhcpIPAddress

    HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Services -> Tcpip -> Parameters -> Interfaces -> {C635A994-2E46-4830-BE56-2385D0311D30} -> DhcpIPAddress

    HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Services -> Tcpip -> Parameters -> Interfaces -> {C2990CA2-3FBC-4D3C-A809-888CBB5A8C73} -> DhcpIPAddress


Da ist die IP überall eingetragen.

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

Mac OS X 10.4, WIN XP Prof.
D 4 Prof, D 7 Pers, xcode
BeitragVerfasst: Do 15.09.05 18:55 
Muss dort über all die IP Adresse eintragen???


Mfg thbi

_________________
Wenn du etwas wirklich gern hast , dann lass es frei, kommt es zu dir zurück gehört es dir, kommt es nicht zurück, dann hat es dir nie gehört...
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: Do 15.09.05 19:06 
Schätzungsweiße reichts es, wenn man es im CurrentControlSet einträgt,
allerdings ist dann wahrscheinlich beim nächsten Start wieder gelöscht.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)