The 1st element occupies 3 bytes, so there is a padding byte added to align the next member on a DWORD boundary. The second member occupies 25 byes, so 3 bytes of paddding are added. The last member length is a multiple of 4, so no final padding is applied.
Therefore, in PB, the structure will be 3 + 25 + 12 = 40 bytes. In VB, it is 3 + 1 + 25 + 3 + 12 = 44 bytes.
I hope this is correct!

------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: