Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Menu with images Pin
Hamid_RT22-May-07 2:09
Hamid_RT22-May-07 2:09 
AnswerRe: Menu with images Pin
Manoj Kumar Rai21-May-07 19:46
professionalManoj Kumar Rai21-May-07 19:46 
GeneralRe: Menu with images Pin
Alex Cutovoi22-May-07 2:03
Alex Cutovoi22-May-07 2:03 
QuestionException handling or return value Pin
Raj Prathap21-May-07 2:32
Raj Prathap21-May-07 2:32 
AnswerRe: Exception handling or return value Pin
CPallini21-May-07 3:10
mveCPallini21-May-07 3:10 
GeneralRe: Exception handling or return value Pin
Raj Prathap21-May-07 18:22
Raj Prathap21-May-07 18:22 
GeneralRe: Exception handling or return value Pin
Nelek21-May-07 19:53
protectorNelek21-May-07 19:53 
GeneralRe: Exception handling or return value Pin
CPallini21-May-07 20:46
mveCPallini21-May-07 20:46 
Raj Prathap wrote:
But still I'm not clear, why return codes are not suitable when we work as team.


Well, suppose you have a method returning failure. If the caller doesn't check the return value and continues execution, maybe some disaster is along the way. On the other hand, throwing an exception, you force the caller to handle it or, anyway, the execution will be stopped.

Now, if the caller is a member of you team (and not yourself) then there is a chance that importance of return value is underestimated.

Hope that helps
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: Exception handling or return value Pin
Raj Prathap21-May-07 23:17
Raj Prathap21-May-07 23:17 
QuestionGroupbox flickering Pin
baerten21-May-07 2:31
baerten21-May-07 2:31 
QuestionHow to insert a binary file into SQL database, via ADO Pin
lilnelse21-May-07 2:15
lilnelse21-May-07 2:15 
QuestionRe: How to insert a binary file into SQL database, via ADO Pin
David Crow21-May-07 3:03
David Crow21-May-07 3:03 
AnswerRe: How to insert a binary file into SQL database, via ADO Pin
lilnelse21-May-07 16:56
lilnelse21-May-07 16:56 
AnswerRe: How to insert a binary file into SQL database, via ADO Pin
lilnelse21-May-07 17:05
lilnelse21-May-07 17:05 
QuestionRead Excel file Pin
Syamlal S Nair21-May-07 2:14
Syamlal S Nair21-May-07 2:14 
AnswerRe: Read Excel file Pin
David Crow21-May-07 3:08
David Crow21-May-07 3:08 
AnswerRe: Read Excel file Pin
Hamid_RT21-May-07 6:54
Hamid_RT21-May-07 6:54 
AnswerRe: Read Excel file Pin
Sameerkumar Namdeo21-May-07 21:07
Sameerkumar Namdeo21-May-07 21:07 
QuestionVC6 to VC8: how to set two libs in the VC8 to be linked with the project? Pin
Joan M21-May-07 2:02
professionalJoan M21-May-07 2:02 
AnswerRe: VC6 to VC8: how to set two libs in the VC8 to be linked with the project? Pin
JudyL_MD21-May-07 2:10
JudyL_MD21-May-07 2:10 
AnswerRe: VC6 to VC8: how to set two libs in the VC8 to be linked with the project? Pin
Cedric Moonen21-May-07 2:11
Cedric Moonen21-May-07 2:11 
QuestionHow to retain the values Pin
jannathali21-May-07 1:56
jannathali21-May-07 1:56 
AnswerRe: How to retain the values Pin
Cedric Moonen21-May-07 1:58
Cedric Moonen21-May-07 1:58 
AnswerRe: How to retain the values Pin
CPallini21-May-07 2:19
mveCPallini21-May-07 2:19 
QuestionRe: How to retain the values Pin
Roger Stoltz21-May-07 2:27
Roger Stoltz21-May-07 2:27 

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.