![]() |
Adressen wie 0x057e als Konstante deklarieren
Hi, ich versuche gerade diese Codezeile zum Laufen zu bekommen:
Delphi-Quellcode:
Das gleiche Problem hab ich bei einer Aufzählung:
const VID = 0x057e;
Delphi-Quellcode:
Hier meckert der Compiler beim 0x20, 0x21 und 0x30.
InputReport = (Status = 0x20, ReadData = 0x21, Buttons = 0x30);
Was mache ich falsch? :) |
Re: Adressen wie 0x057e als Konstante deklarieren
Die Delphi-Syntax ist halt etwas anders ... 0x ist die Markierung von Hexadezimal in C
und in Delphi steht $ für derartige Werte :)
Delphi-Quellcode:
const VID = $057e;
InputReport = (Status = $20, ReadData = $21, Buttons = $30); |
Re: Adressen wie 0x057e als Konstante deklarieren
Wieder was gelernt, danke himitsu :)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:39 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