|
From: Penndragon <pen...@in...> - 2001-05-25 20:22:01
|
MM Andre
The prob appears to be in your if statement. Using a single equals =
character in an if statement tends to assign a vlale rather than do the =
comparison sort. Use two equal signs for the comparison to work.
MP
Penn
----- Original Message -----=20
From: Andre` Niel Cameron=20
To: dev...@li...=20
Sent: Friday, May 18, 2001 3:06 AM
Subject: [Dev-C++] help please
Does any one see any errors here? It compiles fine it just doesn't =
WORK!:(
BOOL LeftRight;
BOOL TopBottom;
BOOL ClickButton(RECT szRectName)
{
if ((g_x > szRectName.left) && (g_x < szRectName.right))
LeftRight =3D TRUE;
else LeftRight =3D FALSE;
if ((g_y < szRectName.top) && (g_y > szRectName.bottom))
TopBottom =3D TRUE;=20
else TopBottom =3D FALSE;
if ((LeftRight =3D TRUE) && (TopBottom =3D TRUE))
return TRUE;
else return FALSE;
}
|