Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: programmer Pin
Timothy Hosey27-Sep-10 11:21
Timothy Hosey27-Sep-10 11:21 
GeneralRe: programmer Pin
Eugen Podsypalnikov27-Sep-10 11:42
Eugen Podsypalnikov27-Sep-10 11:42 
GeneralRe: programmer Pin
Alan Balkany28-Sep-10 4:16
Alan Balkany28-Sep-10 4:16 
AnswerRe: programmer Pin
jeron127-Sep-10 11:33
jeron127-Sep-10 11:33 
Question"return 0" in user defined function Pin
AmbiguousName27-Sep-10 8:36
AmbiguousName27-Sep-10 8:36 
AnswerRe: "return 0" in user defined function Pin
Phil J Pearson27-Sep-10 9:00
Phil J Pearson27-Sep-10 9:00 
AnswerRe: "return 0" in user defined function Pin
pjdriverdude27-Sep-10 9:02
pjdriverdude27-Sep-10 9:02 
AnswerRe: "return 0" in user defined function Pin
Maximilien27-Sep-10 9:08
Maximilien27-Sep-10 9:08 
bit of confusion here.

The user (developer) decides whatever is the meaning of the value returned by a function; AFAIK, there is no
official set way to say a function "executed" successfully; could be a returned value, could be a parameter passed by reference (or pointer), could be a try/catch thingy or the function could set the "Last Error" (GetLastError(), SetLastError() )

If you only have access to the header files, there should be some kind of documentation saying what the return value is; if you have access to the source file, then a bit of looking could be needed.


M.
Watched code never compiles.

Questionchar data type problem Pin
pjdriverdude27-Sep-10 7:20
pjdriverdude27-Sep-10 7:20 
AnswerRe: char data type problem Pin
Luc Pattyn27-Sep-10 7:53
sitebuilderLuc Pattyn27-Sep-10 7:53 
QuestionRe: char data type problem Pin
David Crow27-Sep-10 8:30
David Crow27-Sep-10 8:30 
AnswerRe: char data type problem Pin
pjdriverdude27-Sep-10 8:55
pjdriverdude27-Sep-10 8:55 
QuestionRe: char data type problem Pin
David Crow27-Sep-10 9:00
David Crow27-Sep-10 9:00 
AnswerRe: char data type problem Pin
pjdriverdude27-Sep-10 9:04
pjdriverdude27-Sep-10 9:04 
QuestionRe: char data type problem Pin
David Crow27-Sep-10 9:05
David Crow27-Sep-10 9:05 
AnswerRe: char data type problem Pin
pjdriverdude27-Sep-10 9:33
pjdriverdude27-Sep-10 9:33 
GeneralRe: char data type problem Pin
David Crow27-Sep-10 9:35
David Crow27-Sep-10 9:35 
AnswerRe: char data type problem Pin
Aescleal27-Sep-10 8:33
Aescleal27-Sep-10 8:33 
GeneralRe: char data type problem Pin
pjdriverdude27-Sep-10 8:57
pjdriverdude27-Sep-10 8:57 
GeneralRe: char data type problem Pin
Luc Pattyn27-Sep-10 10:19
sitebuilderLuc Pattyn27-Sep-10 10:19 
AnswerRe: char data type problem Pin
Stefan_Lang29-Sep-10 6:51
Stefan_Lang29-Sep-10 6:51 
GeneralRe: char data type problem Pin
pjdriverdude1-Oct-10 5:31
pjdriverdude1-Oct-10 5:31 
GeneralRe: char data type problem Pin
Stefan_Lang3-Oct-10 22:50
Stefan_Lang3-Oct-10 22:50 
Questionis mfc coding diff [Moved] Pin
prithaa27-Sep-10 3:35
prithaa27-Sep-10 3:35 
AnswerRe: is mfc coding diff Pin
bob1697227-Sep-10 4:16
bob1697227-Sep-10 4: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.