Autor Beitrag
MrFox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 208

WIN 2000 Professional, Ubuntu 5.10
D3 Prof, D7 Pers, D2005 Pers, Java (Eclipse)
BeitragVerfasst: Mi 01.02.06 18:15 
Hi Leute,

wie konvertiere ich einen Hexwert-String von "32-Bit" also einer Länge von 8 Zeichen in einen unsigned-32-Bit Datentyp, also Cardinal oder Longword?

_________________
Das Leben auf der Erde mag zwar teuer sein, aber eine jährliche Rundreise um die Sonne ist gratis mit dabei.
MrFox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 208

WIN 2000 Professional, Ubuntu 5.10
D3 Prof, D7 Pers, D2005 Pers, Java (Eclipse)
BeitragVerfasst: Mi 01.02.06 19:30 
Hab die simple Antwort nach einiger Recherche selbst gefunden...

ausblenden Delphi-Quelltext
1:
2:
var c: cardinal;
        c := StrToInt('$FF');


geradezu spöttisch einfach.

_________________
Das Leben auf der Erde mag zwar teuer sein, aber eine jährliche Rundreise um die Sonne ist gratis mit dabei.
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mi 01.02.06 19:34 
Ich zitiere mal aus dem Easy Delphi Helper:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var hexzahl: string;
    dezimalzahl: integer;
begin
  hexzahl:='$499602D2';
  dezimalzahl:=StrToInt(hexzahl);
end;


Auch online www.dsdt.info/tipps/index.php?id=534