A Stupid doubt????
-
Hi, What is the difference between BOOL and bool?? Best Regards, A.Ilamparithi
-
Hi, What is the difference between BOOL and bool?? Best Regards, A.Ilamparithi
-
Hi, What is the difference between BOOL and bool?? Best Regards, A.Ilamparithi
BOOL goes back to the days when bool was not part of the C++ standard. It is typedef'ed as an int, where FALSE is 0. bool, however is inherently c++. Although BOOL and bool may be used interchangeably, you should be very aware of the dangers involved in mixing these two types. There were a few discussions about this on the lounge a while ago I think. There may be an FAQ article about this as well. Have a search on it. It is worth knowing.
I Dream of Absolute Zero
-
Hi, What is the difference between BOOL and bool?? Best Regards, A.Ilamparithi
If I remember it corectly it's: "enum and #define" - bool is a enum and the classic BOOL is #define'd Regards, Michael Mogensen, mm it-consult dk. ><((((º> ·.¸¸.· ><((((º> ·.¸¸.· ><((((º>