I have this piece of code
// some function
int px;
void SomeFunction( void *dummy )
{
...
RECT rect;
GetWindowRect(hWnd, &rect);
px = ((rect.right - rect.left) / 2) - 60;
...
// Terminate thread
_endthread();
}
And my problem is px doesn't get assigned.. it stays 0.. although in the debugger I can see all the values inside rect..
please help me