Autor Beitrag
sonic159
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

Windows XP
BDS 2006 Professional
BeitragVerfasst: So 25.06.06 15:12 
Hallo!

Wie kann ich mit meiner Konsolenanwendung Texte etc aus
der Registry laden??

MfG: Sonic
PLuS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Win XP, Suse Linux 9.0
D5 Standard, D2005 Personal; Perl; PureBasic
BeitragVerfasst: So 25.06.06 15:25 
Genau wie bei einer VCL-Anwendung auch: Unit "Registry" einbinden und loslegen.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
program Project1;

{$APPTYPE CONSOLE}

uses
  Windows,
  Registry;

var
  reg: TRegistry;

begin
  reg := TRegistry.Create;
  try
    reg.RootKey := HKEY_CURRENT_USER;
    //...
    //dein Code
    //...
  finally
    reg.Free;
  end;
end.

_________________
Der letzte macht die Tür zu!
sonic159 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

Windows XP
BDS 2006 Professional
BeitragVerfasst: So 25.06.06 15:58 
Gut Vielen Dank PLuS!