Why do structures need to be told how big they are?
Posted
by GameTrainersWTF
on Stack Overflow
See other posts from Stack Overflow
or by GameTrainersWTF
Published on 2010-05-31T01:11:22Z
Indexed on
2010/05/31
1:12 UTC
Read the original article
Hit count: 193
I've noticed that in c/c++ a lot of Win32 API structs need to be told how big they are.
i.e someStruct.pbFormat = sizeof(SomeStruct)
Why is this the case? Is it just for legacy reasons? Also any idea what "pb" stands for too?
© Stack Overflow or respective owner