Click here to Skip to main content
15,914,331 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOverruling WH_CBT hook behaviour Pin
S van Leent25-May-03 0:16
S van Leent25-May-03 0:16 
Generalabsolute path of the console is running Pin
liongqi24-May-03 22:37
liongqi24-May-03 22:37 
GeneralRe: absolute path of the console is running Pin
Michael Dunn25-May-03 1:38
sitebuilderMichael Dunn25-May-03 1:38 
QuestionHow to open a database without MFC ? Pin
zakarias24-May-03 21:58
zakarias24-May-03 21:58 
AnswerRe: How to open a database without MFC ? Pin
randal bryant24-May-03 23:17
randal bryant24-May-03 23:17 
AnswerRe: How to open a database without MFC ? Pin
John M. Drescher25-May-03 3:42
John M. Drescher25-May-03 3:42 
QuestionIf 1 = true, 0 =false, why return 0 = successful? Pin
Link260024-May-03 21:01
Link260024-May-03 21:01 
AnswerRe: If 1 = true, 0 =false, why return 0 = successful? Pin
Ryan Binns24-May-03 21:27
Ryan Binns24-May-03 21:27 
One of the reasons is because a lot of the time we want to know what went wrong. We can't have lots of different zeros, so we just let 0 be success, and have any non-zero value meaning failure. This becomes just as simple a test, except that we can get more detail if required by checking for a particular non-zero value - if the program in question returns different values for different errors.

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

AnswerRe: If 1 = true, 0 =false, why return 0 = successful? Pin
Michael Dunn25-May-03 2:53
sitebuilderMichael Dunn25-May-03 2:53 
GeneralRe: If 1 = true, 0 =false, why return 0 = successful? Pin
Link260025-May-03 3:01
Link260025-May-03 3:01 
GeneralRe: If 1 = true, 0 =false, why return 0 = successful? Pin
ZoogieZork25-May-03 10:00
ZoogieZork25-May-03 10:00 
GeneralRe: If 1 = true, 0 =false, why return 0 = successful? Pin
Link260025-May-03 11:30
Link260025-May-03 11:30 
GeneralRe: If 1 = true, 0 =false, why return 0 = successful? Pin
ZoogieZork25-May-03 14:32
ZoogieZork25-May-03 14:32 
QuestionWhere do you put the braces? Pin
Link260024-May-03 16:55
Link260024-May-03 16:55 
AnswerRe: Where do you put the braces? Pin
Wes Aday24-May-03 17:35
professionalWes Aday24-May-03 17:35 
AnswerRe: Where do you put the braces? Pin
Beer24-May-03 17:47
Beer24-May-03 17:47 
AnswerRe: Where do you put the braces? Pin
Robert Little24-May-03 17:57
Robert Little24-May-03 17:57 
AnswerRe: Where do you put the braces? Pin
Paul M Watt24-May-03 19:02
mentorPaul M Watt24-May-03 19:02 
GeneralRe: Where do you put the braces? Pin
Link260024-May-03 19:04
Link260024-May-03 19:04 
GeneralRe: Where do you put the braces? Pin
Paul M Watt24-May-03 21:00
mentorPaul M Watt24-May-03 21:00 
GeneralRe: Where do you put the braces? Pin
Shafiee24-May-03 21:48
Shafiee24-May-03 21:48 
GeneralRe: Where do you put the braces? Pin
includeh1025-May-03 10:43
includeh1025-May-03 10:43 
AnswerRe: Where do you put the braces? Pin
Trollslayer25-May-03 0:02
mentorTrollslayer25-May-03 0:02 
AnswerRe: Where do you put the braces? Pin
markkuk25-May-03 1:06
markkuk25-May-03 1:06 
GeneralRe: Where do you put the braces? Pin
Michael P Butler25-May-03 9:06
Michael P Butler25-May-03 9: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.