Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   32-bit boundary? (https://www.delphipraxis.net/124823-32-bit-boundary.html)

Zacherl 25. Nov 2008 21:27


32-bit boundary?
 
Hey,

habe mir im MSDN folgende Structur angesehen: http://msdn.microsoft.com/en-us/library/ms647001(VS.85).aspx. Dort steht:
Zitat:

Padding1
Contains as many zero words as necessary to align the Value member on a 32-bit boundary.
Was bedeutet das genau? In der Praxis habe ich mir eine Resource angeguckt und Padding1 enthält 2 zero Words, also 4 Bytes. Value liegt demnach bei Offset 40 ($28). Was ist daran 32-bit boundary?

Gruß Zacherl

DGL-luke 25. Nov 2008 21:30

Re: 32-bit boundary?
 
Byte - 1 Byte - 8 Bit
Word - 2 Byte - 16 Bit
DWord - 4 Byte - 32Bit

Sonst noch Fragen?

Ich hoffe ich hab kein Wurm reingebracht

Zacherl 25. Nov 2008 21:51

Re: 32-bit boundary?
 
Ahso ja scheint so als muss (Offset * 8) von VALUE glatt durch 32 teilbar sein. Danke dir!


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:17 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz