Autor Beitrag
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Fr 14.03.08 22:45 
Hallo,

kann man in Delphi ähnlich wie in C definieren, wieviel Bits ein einzelnes Element in einem Record hat?

Beispiel in C:
ausblenden Quelltext
1:
2:
3:
4:
5:
struct xyz
{
  int a: 12;
  int b: 1;
}

Gruß Hape!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 14.03.08 22:58 
Nein, leider nicht. Musst Du über Bitmasken realisieren.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
wulfskin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Fr 14.03.08 23:14 
Hab ich schon befürchtet, danke Ben! :)