Click here to Skip to main content
15,887,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What's the difference between bool and BOOL? Pin
Dominik Reichl2-Oct-03 22:17
Dominik Reichl2-Oct-03 22:17 
GeneralRe: What's the difference between bool and BOOL? Pin
Link26002-Oct-03 22:28
Link26002-Oct-03 22:28 
GeneralRe: What's the difference between bool and BOOL? Pin
Rickard Andersson202-Oct-03 22:40
Rickard Andersson202-Oct-03 22:40 
GeneralRe: What's the difference between bool and BOOL? Pin
Dominik Reichl2-Oct-03 22:41
Dominik Reichl2-Oct-03 22:41 
GeneralRe: What's the difference between bool and BOOL? Pin
vcplusplus2-Oct-03 22:50
vcplusplus2-Oct-03 22:50 
GeneralRe: What's the difference between bool and BOOL? Pin
Bo Hunter3-Oct-03 9:59
Bo Hunter3-Oct-03 9:59 
GeneralRe: What's the difference between bool and BOOL? Pin
Dominik Reichl3-Oct-03 10:11
Dominik Reichl3-Oct-03 10:11 
AnswerRe: What's the difference between bool and BOOL? Pin
3-Oct-03 2:03
suss3-Oct-03 2:03 
There are no archive insertion/extraction operators defined in CArchive for "bool" so Serialization will not work.

Use bool as much as possible if u r not dealing with windows api.

while porting OS from 16 bit to 32 bit, sizeof "BOOL"( which is typedef of integer) also increased.If in future, while porting OS to 128 bit, size of BOOL(same as sizeof int) will b 16 bytes. R u going to tolerate this stupidity if u r not dealing with WinAPI?

If u r using more than one boolean variable in ur code, I 'll suggest u to use one bool with bitfields. This way u will accommodate upto 8 bool variables. I believe that MS Access stores boolean datatypes this way.




The chosen One Smile | :)
QuestionDoes VS.Net support pure C language? Pin
Link26002-Oct-03 21:10
Link26002-Oct-03 21:10 
AnswerRe: Does VS.Net support pure C language? Pin
Rickard Andersson202-Oct-03 21:17
Rickard Andersson202-Oct-03 21:17 
GeneralRe: Does VS.Net support pure C language? Pin
Link26002-Oct-03 21:30
Link26002-Oct-03 21:30 
GeneralRe: Does VS.Net support pure C language? Pin
Rickard Andersson202-Oct-03 21:39
Rickard Andersson202-Oct-03 21:39 
GeneralRe: Does VS.Net support pure C language? Pin
Link26002-Oct-03 22:27
Link26002-Oct-03 22:27 
GeneralRe: Does VS.Net support pure C language? Pin
Rickard Andersson202-Oct-03 22:34
Rickard Andersson202-Oct-03 22:34 
GeneralRe: Does VS.Net support pure C language? Pin
Mike Dimmick2-Oct-03 22:56
Mike Dimmick2-Oct-03 22:56 
GeneralRe: Does VS.Net support pure C language? Pin
Maxwell Chen2-Oct-03 23:33
Maxwell Chen2-Oct-03 23:33 
GeneralHelp! Pin
fynox2-Oct-03 20:39
fynox2-Oct-03 20:39 
GeneralRe: Help! Pin
Dominik Reichl2-Oct-03 22:22
Dominik Reichl2-Oct-03 22:22 
GeneralRe: Help! Pin
Roger Allen3-Oct-03 1:53
Roger Allen3-Oct-03 1:53 
GeneralAnybody there to help me Pin
Sreeramachandra2-Oct-03 19:33
Sreeramachandra2-Oct-03 19:33 
GeneralRe: Refreshing a bitmap Pin
Rickard Andersson202-Oct-03 21:28
Rickard Andersson202-Oct-03 21:28 
GeneralCrashing of application Pin
Jahangir Jamshed2-Oct-03 18:43
sussJahangir Jamshed2-Oct-03 18:43 
GeneralRe: Crashing of application Pin
Anand Paranjpe2-Oct-03 19:58
Anand Paranjpe2-Oct-03 19:58 
GeneralDraw Sound wave Pin
Dang Xuan Ky2-Oct-03 18:37
Dang Xuan Ky2-Oct-03 18:37 
Generalmoving character on screen Pin
sunju2-Oct-03 17:49
sunju2-Oct-03 17:49 

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.