Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i am getting this error please give me the solution.
regrds,
Ravinderreddy
Posted
Comments
Rakesh6906 26-Dec-12 4:07am    
u want to compare bool variable with int? if yes, can we know why?

1 solution

As the error messages suggest, you cannot compare these two types together.
If the interger is either a 1 or 0, try converting it to boolean and then do the comparision again.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900