Click here to Skip to main content
15,912,294 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRestricting access to DB Pin
Paul Ebert6-Sep-00 13:05
Paul Ebert6-Sep-00 13:05 
GeneralRe: Restricting access to DB Pin
Alex6-Sep-00 21:19
Alex6-Sep-00 21:19 
GeneralBOOL, TRUE, FALSE vs. bool, true, false Pin
Marty6-Sep-00 10:14
Marty6-Sep-00 10:14 
GeneralRe: BOOL, TRUE, FALSE vs. bool, true, false Pin
Michael Dunn6-Sep-00 16:06
sitebuilderMichael Dunn6-Sep-00 16:06 
GeneralRe: BOOL, TRUE, FALSE vs. bool, true, false Pin
Uwe Keim6-Sep-00 22:19
sitebuilderUwe Keim6-Sep-00 22:19 
GeneralRe: BOOL, TRUE, FALSE vs. bool, true, false Pin
Michael Dunn6-Sep-00 22:24
sitebuilderMichael Dunn6-Sep-00 22:24 
GeneralRe: BOOL, TRUE, FALSE vs. bool, true, false Pin
Sam Hobbs8-Sep-00 9:24
Sam Hobbs8-Sep-00 9:24 
GeneralRe: BOOL, TRUE, FALSE vs. bool, true, false Pin
arf7-Sep-00 5:21
arf7-Sep-00 5:21 
My approach is to use bool everywhere remotely possible and to stay as far away from MFC as much as possible Smile | :) . You never know when you might have to port your code or when MS might change their minds on BOOL.

I just use conditional returns like this if a BOOL is required:

if ( true == bState )
{
return TRUE;
}
else
{
return FALSE;
}

when I have to return a BOOL in an overridden function.

I try to never mix BOOL and bool. Even though they serve the same purpose, they are different types and should be treated as such.


QuestionChris's grid in an extension dll? Pin
Nick Hodapp6-Sep-00 8:59
sitebuilderNick Hodapp6-Sep-00 8:59 
AnswerRe: Chris's grid in an extension dll? Pin
Paolo Messina6-Sep-00 9:30
professionalPaolo Messina6-Sep-00 9:30 
GeneralRe: Chris's grid in an extension dll? Pin
Nick Hodapp6-Sep-00 9:48
sitebuilderNick Hodapp6-Sep-00 9:48 
GeneralRe: Chris's grid in an extension dll? Pin
Paolo Messina6-Sep-00 11:00
professionalPaolo Messina6-Sep-00 11:00 
GeneralCWinApp::OnFileNew Pin
nisse6-Sep-00 4:27
nisse6-Sep-00 4:27 
GeneralRe: CWinApp::OnFileNew Pin
Sam Hobbs8-Sep-00 9:29
Sam Hobbs8-Sep-00 9:29 
GeneralRe: CWinApp::OnFileNew Pin
nisse11-Sep-00 5:08
nisse11-Sep-00 5:08 
GeneralMAC Address Pin
Roger6-Sep-00 4:23
Roger6-Sep-00 4:23 
GeneralRe: MAC Address Pin
Paolo Messina6-Sep-00 9:51
professionalPaolo Messina6-Sep-00 9:51 
GeneralAdding Handlers for User-Defined Messages Pin
#realJSOP6-Sep-00 1:27
professional#realJSOP6-Sep-00 1:27 
Generalchange the windows opening screen Pin
thrivikram6-Sep-00 1:24
thrivikram6-Sep-00 1:24 
GeneralC++ Exception Pin
koteswara5-Sep-00 20:46
koteswara5-Sep-00 20:46 
GeneralRe: C++ Exception Pin
Pete Bassett5-Sep-00 22:50
Pete Bassett5-Sep-00 22:50 
GeneralRe: C++ Exception Pin
Tim Deveaux6-Sep-00 6:23
Tim Deveaux6-Sep-00 6:23 
GeneralRe: C++ Exception Pin
Pete Bassett6-Sep-00 6:33
Pete Bassett6-Sep-00 6:33 
GeneralRe: C++ Exception Pin
Chris Losinger7-Sep-00 11:29
professionalChris Losinger7-Sep-00 11:29 
GeneralRe: C++ Exception Pin
Remus Lazar5-Sep-00 22:51
Remus Lazar5-Sep-00 22:51 

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.