Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ Pin
Maxwell Chen5-Jan-03 6:09
Maxwell Chen5-Jan-03 6:09 
GeneralTooltip question Pin
Martyn Pearson3-Jan-03 5:34
Martyn Pearson3-Jan-03 5:34 
GeneralRe: Tooltip question Pin
scott sanders3-Jan-03 13:22
scott sanders3-Jan-03 13:22 
GeneralRe: Tooltip question Pin
Martyn Pearson5-Jan-03 21:28
Martyn Pearson5-Jan-03 21:28 
QuestionHow to make a program like MS Word Pin
pmask3-Jan-03 5:02
pmask3-Jan-03 5:02 
AnswerRe: How to make a program like MS Word Pin
AlexO3-Jan-03 5:07
AlexO3-Jan-03 5:07 
GeneralRe: How to make a program like MS Word Pin
pmask3-Jan-03 5:17
pmask3-Jan-03 5:17 
GeneralRe: How to make a program like MS Word Pin
AlexO3-Jan-03 6:03
AlexO3-Jan-03 6:03 
AnswerRe: How to make a program like MS Word Pin
nde_plume3-Jan-03 5:32
nde_plume3-Jan-03 5:32 
AnswerRe: How to make a program like MS Word Pin
pmask3-Jan-03 6:21
pmask3-Jan-03 6:21 
Generalproblem in calculating point of intersection of two lines Pin
Naveed Chaudhry3-Jan-03 4:46
sussNaveed Chaudhry3-Jan-03 4:46 
GeneralRe: problem in calculating point of intersection of two lines Pin
Gary Kirkham3-Jan-03 4:53
Gary Kirkham3-Jan-03 4:53 
GeneralRe: problem in calculating point of intersection of two lines Pin
Joaquín M López Muñoz3-Jan-03 4:54
Joaquín M López Muñoz3-Jan-03 4:54 
GeneralRe: problem in calculating point of intersection of two lines Pin
Nitron3-Jan-03 5:00
Nitron3-Jan-03 5:00 
GeneralRe: problem in calculating point of intersection of two lines Pin
Nitron3-Jan-03 5:04
Nitron3-Jan-03 5:04 
QuestionDatabase change need to propogate to Users? Pin
Anonymous3-Jan-03 4:37
Anonymous3-Jan-03 4:37 
GeneralResize Metafile Pin
Anthony98873-Jan-03 4:14
Anthony98873-Jan-03 4:14 
GeneralRe: Resize Metafile Pin
Gary R. Wheeler3-Jan-03 5:26
Gary R. Wheeler3-Jan-03 5:26 
GeneralRe: Resize Metafile Pin
Roger Allen3-Jan-03 5:39
Roger Allen3-Jan-03 5:39 
Generalbool and BOOL Pin
monrobot133-Jan-03 4:10
monrobot133-Jan-03 4:10 
GeneralRe: bool and BOOL Pin
Anonymous3-Jan-03 4:22
Anonymous3-Jan-03 4:22 
GeneralRe: bool and BOOL Pin
nde_plume3-Jan-03 5:41
nde_plume3-Jan-03 5:41 
Functionally, bool and BOOL are identical. bool should be preferred since BOOL is a legacy from a time when bool was not part of the language. It is necessary to use it with the Windows APIs, though, as I say, they are largely interchangable.

One difference though is that sizeof(bool) = 1 and sizeof(BOOL) = 4 (generally speaking).
This is particularly relevant when you need an array of boolean flags. For example,

bool lineChanged[2048];

takes 75% less memory than

BOOL lineChanged[2048];


GeneralRe: bool and BOOL Pin
DaveZ3-Jan-03 7:07
DaveZ3-Jan-03 7:07 
GeneralRe: bool and BOOL Pin
stanley guan5-Jan-03 14:58
stanley guan5-Jan-03 14:58 
GeneralCompletion Ports and ODBC Pin
Dave-B3-Jan-03 3:37
Dave-B3-Jan-03 3:37 

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.