|
From: Abhijit S. <mu...@gm...> - 2003-01-01 22:40:23
|
> The problem is not with the hWnd. It's with the LPRECT. It's a pointer
> pointing to an unknown location. Try changing it to a RECT and then pass
> &rect to GetClientRect().
Sorry, that was not the problem that caused the crash, though it WAS a
problem. In lerror, you'd created
a pointer that wasn't initialized. This works:
void lerror(long msg) {
static TCHAR tcMsg[33];
_ltoa(msg,tcMsg,10);
error(tcMsg);
}
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|