Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a question check box

Status
Not open for further replies.

jayjay60

Programmer
Jun 19, 2001
97
FR
I have a dlg application in which i would like to put 2 check box. For each check box there is a boolean variable, i would like to use those variables so that my app could call the right function when one of this check box is flagged.
But, when i try to compile my code i have this kind of warning message:
warning c4800:"int":forcing value to bool "true" or "false"(performance warning)
So, i don't know if it's really a big pb. Perhaps i should use another type of button as a radio button, i don't know!

Thanks in advance for your help.

jayjay
 
the check box does not have a boolean value for checked. I believe it also has values for disabled checked and unchecked. You will need to look in the help and see examples and see what type it returns and do a conditional on that return value.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top