Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Brauche Hilfe beim Übersetzen aus C (https://www.delphipraxis.net/14013-brauche-hilfe-beim-uebersetzen-aus-c.html)

MasterJo 30. Dez 2003 20:33


Brauche Hilfe beim Übersetzen aus C
 
Hallo!

Ich bin am verzweifeln!!! Ich versuche schon einige Zeit, diese 2 Zeile aus C in Pascal zu übersetzen.

Delphi-Quellcode:
command[2] = (0x21 >> 8);
command[3] = (0x21 & 0x00FF);
Habe schon ein Paar Dinge probiert, hat aber nicht funktioniert!

Vielen Dank für eure Hilfe!

Gruß, Jo

himitsu 30. Dez 2003 20:45

Re: Brauche Hilfe beim Übersetzen aus C
 
Delphi-Quellcode:
command[2] := $21 shr 8;
command[3] := $21 and $00FF;
Wobei sich da kürzen laßt.

Delphi-Quellcode:
command[2] := 0;
command[3] := 33 {$21};


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:18 Uhr.

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