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?
EDIT: oops, yeah I meant "cbFormat"
以上就是Why do structures need to be told how big they are?的详细内容,更多请关注web前端其它相关文章!