Click here to Skip to main content
15,914,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: BOOL to bool conversion Pin
User 66584-Jul-04 7:07
User 66584-Jul-04 7:07 
GeneralRe: BOOL to bool conversion Pin
Tim Smith4-Jul-04 7:12
Tim Smith4-Jul-04 7:12 
GeneralRe: BOOL to bool conversion Pin
J.B.4-Jul-04 7:19
J.B.4-Jul-04 7:19 
GeneralRe: BOOL to bool conversion Pin
User 66584-Jul-04 7:34
User 66584-Jul-04 7:34 
GeneralRe: BOOL to bool conversion Pin
A T I F4-Jul-04 22:14
A T I F4-Jul-04 22:14 
GeneralRe: BOOL to bool conversion Pin
User 66585-Jul-04 0:54
User 66585-Jul-04 0:54 
GeneralRe: BOOL to bool conversion Pin
Tim Smith5-Jul-04 4:03
Tim Smith5-Jul-04 4:03 
GeneralRe: BOOL to bool conversion Pin
V.4-Jul-04 22:18
professionalV.4-Jul-04 22:18 
if your BOOL > 0 it is TRUE.
if your BOOL = 0 it is FALSE.
Don't know for sure for values < 0.

their are apps eg. where your BOOL has value 2 or 3 , ...
then you can do if(YOURBOOL){ ... }

personally I think BOOL is against the whole idea of the basic datatype of a boolean. I would recommend a bool if you want to use true or false and an int or something if you have more values (and do if(yourint == 3){...})
but it's MFC Unsure | :~


"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
GeneralRe: BOOL to bool conversion Pin
Tim Smith5-Jul-04 4:01
Tim Smith5-Jul-04 4:01 
GeneralUsing MFC in Win32 Application Pin
vyjesh4-Jul-04 0:33
vyjesh4-Jul-04 0:33 
GeneralRe: Using MFC in Win32 Application Pin
gamitech4-Jul-04 6:19
gamitech4-Jul-04 6:19 
GeneralRe: Using MFC in Win32 Application Pin
Frank K4-Jul-04 19:34
Frank K4-Jul-04 19:34 
Generalproblem with console app Pin
cpeed4-Jul-04 0:29
cpeed4-Jul-04 0:29 
GeneralRe: problem with console app Pin
Mike Nordell4-Jul-04 1:17
Mike Nordell4-Jul-04 1:17 
GeneralRe: problem with console app Pin
cpeed4-Jul-04 1:25
cpeed4-Jul-04 1:25 
Generalthe &quot;outp&quot; command Pin
Member 12178723-Jul-04 22:59
Member 12178723-Jul-04 22:59 
GeneralRe: the &quot;outp&quot; command Pin
peterchen4-Jul-04 0:30
peterchen4-Jul-04 0:30 
Generalthe &quot;outp&quot; command Pin
Member 12178723-Jul-04 22:56
Member 12178723-Jul-04 22:56 
Generalthe &quot;outp&quot; command Pin
Member 12178723-Jul-04 19:24
Member 12178723-Jul-04 19:24 
GeneralRe: the &quot;outp&quot; command Pin
Michael Dunn3-Jul-04 20:40
sitebuilderMichael Dunn3-Jul-04 20:40 
GeneralRe: the &quot;outp&quot; command Pin
Johan Rosengren3-Jul-04 21:02
Johan Rosengren3-Jul-04 21:02 
Generaldialog box help Pin
AmericanBacon3-Jul-04 15:15
AmericanBacon3-Jul-04 15:15 
GeneralRe: dialog box help Pin
Ravi Bhavnani3-Jul-04 16:04
professionalRavi Bhavnani3-Jul-04 16:04 
GeneralRe: dialog box help Pin
PJ Arends3-Jul-04 17:22
professionalPJ Arends3-Jul-04 17:22 
GeneralRe: dialog box help Pin
gamitech4-Jul-04 6:21
gamitech4-Jul-04 6:21 

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.