Click here to Skip to main content
15,907,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: If 1 = true, 0 =false, why return 0 = successful? Pin
Michael Dunn25-May-03 2:53
sitebuilderMichael Dunn25-May-03 2:53 
There are two ways of looking at return values. One is succeeded/failed, and the boolean type is perfect for that. So true (1) indicates success, false (0) indicates failure. The other way is using a set of numbers with predefined meanings. In this case, success does not have to be 0, or 1, or 6000, or anything really. 0 is the first number, and it just happened to be assigned the meaning success (ERROR_SUCCESS).

--Mike--
Latest blog entry: *drool* (Alyson) [May 10]
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me

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 
AnswerRe: Where do you put the braces? Pin
Anonymous25-May-03 2:16
Anonymous25-May-03 2:16 

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.