|
델파이를 잘 몰라서 그런데요. 아래 문장을 C++Builder 코드로 바꾸면 어떻게 되나요.
$FF ==> 0xFF 이고 and ==> &, shr ==> >> 가 맞는지 확인좀 해주세요.
AColor: TColor;
(AColor and $FF, (AColor shr 8) and $FF, (AColor shr 16) and $FF, (AColor shr 24) and $FF);
TColor AColor;
(AColor & 0xFF, (AColor >> 8) & 0xFF, (AColor >> 16) & 0xFF, (AColor >> 24) & 0xFF);
확신이 없네요.
|