Moin Hagen,

Zitat von
negaH:
Warum Konstanten ??

Zitat von
Christian Seehase:
Konstanten ..., die etwas darüber aussagen, was das jeweilige Bit zu bedeuten hat.
z.B. finde ich das hier übersichtlicher
(ausgedachtes Beispiel)
Delphi-Quellcode:
const
_IsValidIndex = $4000;
begin
if (dwFlags and _IsValidIndex) <> 0 then ...
end;
als das
if (dwFlags and $4000) <> 0 then ...
Darum Konstanten