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

C / C++ / MFC

 
GeneralRe: Help! how to alter the ScrollBar control's color Pin
kcynic28-Feb-05 14:29
kcynic28-Feb-05 14:29 
GeneralA little unicode question. Pin
Member 1219625225-Feb-05 14:02
Member 1219625225-Feb-05 14:02 
GeneralRe: A little unicode question. Pin
PJ Arends25-Feb-05 14:16
professionalPJ Arends25-Feb-05 14:16 
GeneralRe: A little unicode question. Pin
Member 1219625226-Feb-05 0:36
Member 1219625226-Feb-05 0:36 
Generalc++ bool variable Pin
tnvols25-Feb-05 12:46
tnvols25-Feb-05 12:46 
GeneralRe: c++ bool variable Pin
Maximilien25-Feb-05 14:50
Maximilien25-Feb-05 14:50 
GeneralRe: c++ bool variable Pin
tnvols25-Feb-05 16:04
tnvols25-Feb-05 16:04 
GeneralRe: c++ bool variable Pin
Ravi Bhavnani25-Feb-05 16:10
professionalRavi Bhavnani25-Feb-05 16:10 
A bool is used when you want to store the (true/false) value of a condition, for later reference. For example:
// Check if the system is OK - this may take several
// seconds to execute
bool bSystemWasOK = checkIfSystemIsOK();
...
if (bSystemWasOK)
   doSomething();
...
if (bSystemWasOK)
   doSomethingElse();
Storing the value of the check in bSystemWasOK saves you the effort of calling checkIfSystemIsOK() repeatedly. This example assumes that the system state continues to be OK throughout the execution of the code fragment.

Hope this helps.

/ravi

My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralRe: c++ bool variable Pin
tnvols25-Feb-05 16:32
tnvols25-Feb-05 16:32 
GeneralRe: c++ bool variable Pin
rbid25-Feb-05 20:01
rbid25-Feb-05 20:01 
GeneralRe: c++ bool variable Pin
tnvols25-Feb-05 23:04
tnvols25-Feb-05 23:04 
GeneralRe: c++ bool variable Pin
Ravi Bhavnani25-Feb-05 16:05
professionalRavi Bhavnani25-Feb-05 16:05 
GeneralRedistributable Package Pin
Horsy25-Feb-05 11:42
Horsy25-Feb-05 11:42 
GeneralRe: Redistributable Package Pin
Horsy25-Feb-05 13:01
Horsy25-Feb-05 13:01 
GeneralRe: Redistributable Package Pin
PJ Arends25-Feb-05 14:10
professionalPJ Arends25-Feb-05 14:10 
GeneralRe: Redistributable Package Pin
S. Senthil Kumar25-Feb-05 15:15
S. Senthil Kumar25-Feb-05 15:15 
QuestionHow to maximize CChildFrame (MDI) upon creation? Pin
bitpusher25-Feb-05 11:26
bitpusher25-Feb-05 11:26 
GeneralCommand Line in VC Pin
krisbee25-Feb-05 9:51
krisbee25-Feb-05 9:51 
GeneralRe: Command Line in VC Pin
David Crow25-Feb-05 9:52
David Crow25-Feb-05 9:52 
GeneralRe: Command Line in VC Pin
Michael Dunn25-Feb-05 12:19
sitebuilderMichael Dunn25-Feb-05 12:19 
GeneralMore property sheet questions Pin
bcemick25-Feb-05 9:46
bcemick25-Feb-05 9:46 
GeneralRe: More property sheet questions Pin
David Crow25-Feb-05 9:51
David Crow25-Feb-05 9:51 
GeneralRe: More property sheet questions Pin
bcemick25-Feb-05 10:03
bcemick25-Feb-05 10:03 
GeneralRe: More property sheet questions Pin
David Crow25-Feb-05 10:05
David Crow25-Feb-05 10:05 
GeneralRe: More property sheet questions Pin
bcemick25-Feb-05 10:13
bcemick25-Feb-05 10:13 

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.