Click here to Skip to main content
15,890,366 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Completion Ports and ODBC Pin
NormDroid3-Jan-03 3:46
professionalNormDroid3-Jan-03 3:46 
GeneralRe: Completion Ports and ODBC Pin
Dave-B3-Jan-03 4:02
Dave-B3-Jan-03 4:02 
GeneralRe: Completion Ports and ODBC Pin
Anders Molin3-Jan-03 13:55
professionalAnders Molin3-Jan-03 13:55 
QuestionDo I have a resource leak? Pin
georgiek503-Jan-03 2:36
georgiek503-Jan-03 2:36 
AnswerRe: Do I have a resource leak? Pin
Joaquín M López Muñoz3-Jan-03 2:49
Joaquín M López Muñoz3-Jan-03 2:49 
GeneralRe: Do I have a resource leak? Pin
georgiek503-Jan-03 6:34
georgiek503-Jan-03 6:34 
GeneralRe: Do I have a resource leak? Pin
Joaquín M López Muñoz3-Jan-03 7:33
Joaquín M López Muñoz3-Jan-03 7:33 
GeneralRe: Do I have a resource leak? Pin
georgiek503-Jan-03 10:48
georgiek503-Jan-03 10:48 
General_execv from one console app to another Pin
Anonymous3-Jan-03 2:20
Anonymous3-Jan-03 2:20 
GeneralRe: _execv from one console app to another Pin
Anders Molin3-Jan-03 2:33
professionalAnders Molin3-Jan-03 2:33 
GeneralRe: _execv from one console app to another Pin
Anonymous3-Jan-03 2:37
Anonymous3-Jan-03 2:37 
GeneralRe: _execv from one console app to another Pin
Joaquín M López Muñoz3-Jan-03 3:03
Joaquín M López Muñoz3-Jan-03 3:03 
GeneralRe: _execv from one console app to another Pin
Anonymous3-Jan-03 3:14
Anonymous3-Jan-03 3:14 
GeneralRe: _execv from one console app to another Pin
Joaquín M López Muñoz3-Jan-03 5:06
Joaquín M López Muñoz3-Jan-03 5:06 

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.