Showing results for November 28, 2011 - The Old New Thing

Nov 28, 2011
Post comments count0
Post likes count0

Why is CLIPFORMAT defined to be a WORD rather than a UINT?

Raymond Chen
Raymond Chen

Commenter Ivo wants to know if the function returns a , why is the data type defined to be a ? Since a is smaller than a , you have to stick in a cast every time you assign the result of to a . Rewind to 16-bit Windows. Back in those days, a and a were the same size, namely, 16 bits. As a result, people got lazy about the distinction. ...

History