Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Datentype Array of Byte und Cardinal (https://www.delphipraxis.net/159597-datentype-array-byte-und-cardinal.html)

Bummi 5. Apr 2011 09:37

AW: Datentype Array of Byte und Cardinal
 
Einen hab ich noch
Delphi-Quellcode:
  function Swap(Value: Cardinal): Cardinal;
  asm
     BSWAP EAX
  end;

procedure TForm1.Button1Click(Sender: TObject);
var
  c:Cardinal;
begin
 c := $AABBCCDD;
 c := Swap(c);
 Showmessage(IntToHex(c,8))
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:37 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz