![]() |
Accessing To A Struct With A Given Pointer
We have a struct defined as :
Quote:
Quote:
Quote:
But there is a problem with the code. pWinPos is a constant pointer, so we can't simply assign an address to it. So, finally, here is my question... How can I access to the WINDOWPOS struct whose address is given by lParam PS : I am using Dev-C++ |
Re: Accessing To A Struct With A Given Pointer
Welcome to the Programming forum.
Quote:
pWinPos = (WINDOWPOS *)lParam; Thanks Shabbir Bhimani |
Re: Accessing To A Struct With A Given Pointer
That one works, thank you.
Actually, I tried the same thing, but I put the * oparetor to the wrong place : pWinPos = (* WINDOWPOS)lParam; instead of pWinPos = (WINDOWPOS *)lParam; That is silly of me :) |
Re: Accessing To A Struct With A Given Pointer
Quote:
|
| All times are GMT +5.5. The time now is 13:01. |