|Date:||September 8, 2006 / year-entry #306|
|Summary:||Consider this follow-up question to the question from last time: When I call the PropertySheet function, can I assume that the phpage field of the PROPSHEETHEADER structure will not be modified? If we take a look at the declaration of the PropertySheet function, we see that it reads like this: typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA; typedef...|
Consider this follow-up question to the question from last time:
If we take a look at the declaration of the
typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA; typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW; WINCOMMCTRLAPI INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA); WINCOMMCTRLAPI INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
Go past all the function declaration specification goo and look
at the parameter list.
One of the rules for const pointers is that you can read from them
but you cannot write to them.