Click here to Skip to main content
15,922,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help with C++ MFC syntax Pin
David Crow20-May-08 3:36
David Crow20-May-08 3:36 
AnswerRe: Help with C++ MFC syntax Pin
Rajkumar R20-May-08 3:46
Rajkumar R20-May-08 3:46 
QuestionRe: Help with C++ MFC syntax [modified] Pin
CPallini20-May-08 3:47
mveCPallini20-May-08 3:47 
AnswerRe: Help with C++ MFC syntax Pin
Kwanalouie20-May-08 6:56
Kwanalouie20-May-08 6:56 
GeneralRe: Help with C++ MFC syntax Pin
CPallini20-May-08 9:00
mveCPallini20-May-08 9:00 
Questionbool and BOOL Pin
Jhony george20-May-08 3:25
Jhony george20-May-08 3:25 
AnswerRe: bool and BOOL Pin
Rajesh R Subramanian20-May-08 3:29
professionalRajesh R Subramanian20-May-08 3:29 
AnswerThe latter is the uppercase version of the former. Pin
CPallini20-May-08 3:31
mveCPallini20-May-08 3:31 
Big Grin | :-D

bool is a C++ keyword, BOOL a Microsoft alias for int:
typedef int BOOL;


Any variable declared bool can assume only the following two values: true or false, moreover C++conditional expressions evaluates to a bool result (true or false). On the other hand, a BOOL variable is a fully qualified int and hence can assume any numeric value an int can (MSDN suggest: it should be either TRUE or FALSE).

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: The latter is the uppercase version of the former. [modified] Pin
toxcct20-May-08 3:36
toxcct20-May-08 3:36 
GeneralRe: The latter is the uppercase version of the former. Pin
Rajesh R Subramanian20-May-08 3:37
professionalRajesh R Subramanian20-May-08 3:37 
QuestionRe: The latter is the uppercase version of the former. Pin
CPallini20-May-08 3:38
mveCPallini20-May-08 3:38 
JokeRe: The latter is the uppercase version of the former. Pin
Rajesh R Subramanian20-May-08 3:52
professionalRajesh R Subramanian20-May-08 3:52 
GeneralRe: The latter is the uppercase version of the former. Pin
toxcct20-May-08 3:53
toxcct20-May-08 3:53 
GeneralRe: The latter is the uppercase version of the former. Pin
Rajesh R Subramanian20-May-08 3:54
professionalRajesh R Subramanian20-May-08 3:54 
JokeRe: The latter is the uppercase version of the former. Pin
Cedric Moonen20-May-08 3:55
Cedric Moonen20-May-08 3:55 
GeneralRe: The latter is the uppercase version of the former. Pin
toxcct20-May-08 3:56
toxcct20-May-08 3:56 
JokeRe: The latter is the uppercase version of the former. Pin
Rajesh R Subramanian20-May-08 3:58
professionalRajesh R Subramanian20-May-08 3:58 
JokeRe: The latter is the uppercase version of the former. Pin
CPallini20-May-08 3:59
mveCPallini20-May-08 3:59 
AnswerRe: bool and BOOL [modified] Pin
toxcct20-May-08 3:33
toxcct20-May-08 3:33 
GeneralRe: bool and BOOL Pin
Rajesh R Subramanian20-May-08 3:36
professionalRajesh R Subramanian20-May-08 3:36 
GeneralRe: bool and BOOL Pin
toxcct20-May-08 3:38
toxcct20-May-08 3:38 
GeneralRe: bool and BOOL Pin
Rajesh R Subramanian20-May-08 3:41
professionalRajesh R Subramanian20-May-08 3:41 
GeneralRe: bool and BOOL Pin
toxcct20-May-08 3:44
toxcct20-May-08 3:44 
GeneralRe: bool and BOOL Pin
CPallini20-May-08 3:41
mveCPallini20-May-08 3:41 
GeneralRe: bool and BOOL Pin
toxcct20-May-08 3:45
toxcct20-May-08 3:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.