Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Nice discussion point ? Pin
toxcct15-Jun-04 4:00
toxcct15-Jun-04 4:00 
GeneralSure you can :) Pin
bikram singh15-Jun-04 4:49
bikram singh15-Jun-04 4:49 
GeneralRe: Sure you can :) Pin
toxcct15-Jun-04 4:52
toxcct15-Jun-04 4:52 
GeneralRe: Sure you can :) Pin
bikram singh15-Jun-04 5:02
bikram singh15-Jun-04 5:02 
GeneralRe: Sure you can :) Pin
David Crow15-Jun-04 5:04
David Crow15-Jun-04 5:04 
GeneralRe: Sure you can :) Pin
toxcct15-Jun-04 5:06
toxcct15-Jun-04 5:06 
GeneralRe: Sure you can :) Pin
bikram singh15-Jun-04 6:18
bikram singh15-Jun-04 6:18 
GeneralRe: Nice discussion point ? Pin
Nitron15-Jun-04 3:16
Nitron15-Jun-04 3:16 
toxcct wrote:
for the portability of bool, i agree. We should prefer BOOL instead...

no, BOOL is MS-specific, bool is ANSI C++. Also, you should always compare via similar types, so a correct form of the original (according to my profiler) would be:

bool bAllowUnvalidateTextResult = (siteFlags.GetNbrValue(ALLOW_UNVALIDATE_TEXTRESULT) == 1) ? true : false;



that is, if GetNbrValue returns an int.

~Nitron.
ññòòïðïðB A
start

GeneralRe: Nice discussion point ? Pin
toxcct15-Jun-04 3:30
toxcct15-Jun-04 3:30 
GeneralRe: Nice discussion point ? Pin
Nitron15-Jun-04 6:30
Nitron15-Jun-04 6:30 
GeneralRe: Nice discussion point ? Pin
David Crow15-Jun-04 5:07
David Crow15-Jun-04 5:07 
GeneralRe: Nice discussion point ? Pin
bikram singh15-Jun-04 11:57
bikram singh15-Jun-04 11:57 
AnswerRe: Nice discussion point ? Pin
Tim Smith15-Jun-04 3:52
Tim Smith15-Jun-04 3:52 
GeneralMsFlexGrid and CDialogBar Pin
Anonymous14-Jun-04 22:56
Anonymous14-Jun-04 22:56 
GeneralGetting (x,y) Coords of MSChart Pin
Member 97062114-Jun-04 22:37
Member 97062114-Jun-04 22:37 
GeneralScroll view & Print preview Pin
Nelson L.14-Jun-04 22:05
Nelson L.14-Jun-04 22:05 
GeneralDrawCli Pin
Arun AC14-Jun-04 21:01
Arun AC14-Jun-04 21:01 
QuestionHow to stream (send) a Video on a Network Pin
Zeeshan Bilal14-Jun-04 20:12
Zeeshan Bilal14-Jun-04 20:12 
AnswerRe: How to stream (send) a Video on a Network Pin
Vadim Tabakman14-Jun-04 20:36
Vadim Tabakman14-Jun-04 20:36 
GeneralRe: How to stream (send) a Video on a Network Pin
Zeeshan Bilal14-Jun-04 21:53
Zeeshan Bilal14-Jun-04 21:53 
AnswerRe: How to stream (send) a Video on a Network Pin
Un121-Aug-04 5:55
Un121-Aug-04 5:55 
GeneralWin CE DialogBar Pin
S.DARWIN PAUL RAJ14-Jun-04 20:06
S.DARWIN PAUL RAJ14-Jun-04 20:06 
GeneralScrolling in windows Pin
Member 80176914-Jun-04 20:06
Member 80176914-Jun-04 20:06 
GeneralRe: Scrolling in windows Pin
Vadim Tabakman14-Jun-04 20:35
Vadim Tabakman14-Jun-04 20:35 
QuestionHelp in tabbed dialogs?? Pin
Lakshmi Priya Musuvathy14-Jun-04 20:02
Lakshmi Priya Musuvathy14-Jun-04 20:02 

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.