Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: changing background color DFC_CAPTION, DFCS_CAPTIONCLOSE Pin
James R. Twine17-Jan-08 4:18
James R. Twine17-Jan-08 4:18 
Generalmy code to prove working set larger than virtual bytes Pin
George_George17-Jan-08 3:22
George_George17-Jan-08 3:22 
GeneralDisplaying line numbers Pin
Sanjay K17-Jan-08 1:08
Sanjay K17-Jan-08 1:08 
GeneralRe: Displaying line numbers Pin
Iain Clarke, Warrior Programmer17-Jan-08 2:04
Iain Clarke, Warrior Programmer17-Jan-08 2:04 
QuestionRe: Displaying line numbers Pin
David Crow17-Jan-08 2:29
David Crow17-Jan-08 2:29 
GeneralRe: Displaying line numbers Pin
Hamid_RT17-Jan-08 18:08
Hamid_RT17-Jan-08 18:08 
QuestionHow to use libwww Pin
ktm TechMan17-Jan-08 0:35
ktm TechMan17-Jan-08 0:35 
GeneralError handling - a best way Pin
CodingLover16-Jan-08 22:23
CodingLover16-Jan-08 22:23 
Hi all,

Still I'm learning C++ and I'll try my best used most better ways in my works.

When I'm coding, I mean use of try, catch or if, else etc..., always used a single line of code. Here it is...


cout << "Error. GetLastError reports " << GetLastError() << endl;



In simple word find the error code and correct way. If I'm working on MFC, cout replaced by a message box.

My question is what is the best way to display errors for users. Displaying error codes is not prefer for users. Is that a separate section in C++, handling errors/exceptions.

I appreciate your help all the time...
Eranga Smile | :)

GeneralRe: Error handling - a best way Pin
CPallini16-Jan-08 23:21
mveCPallini16-Jan-08 23:21 
GeneralRe: Error handling - a best way Pin
CodingLover16-Jan-08 23:38
CodingLover16-Jan-08 23:38 
GeneralRe: Error handling - a best way Pin
CPallini17-Jan-08 0:22
mveCPallini17-Jan-08 0:22 
GeneralRe: Error handling - a best way Pin
CodingLover17-Jan-08 0:42
CodingLover17-Jan-08 0:42 
QuestionRe: Error handling - a best way Pin
David Crow17-Jan-08 2:31
David Crow17-Jan-08 2:31 
GeneralRe: Error handling - a best way Pin
CPallini17-Jan-08 3:32
mveCPallini17-Jan-08 3:32 
GeneralRe: Error handling - a best way Pin
Nishad S16-Jan-08 23:56
Nishad S16-Jan-08 23:56 
GeneralRe: Error handling - a best way Pin
CodingLover17-Jan-08 0:33
CodingLover17-Jan-08 0:33 
GeneralRe: Error handling - a best way Pin
Nishad S17-Jan-08 0:53
Nishad S17-Jan-08 0:53 
GeneralRe: Error handling - a best way Pin
James R. Twine17-Jan-08 4:11
James R. Twine17-Jan-08 4:11 
GeneralRe: Error handling - a best way Pin
CodingLover17-Jan-08 15:09
CodingLover17-Jan-08 15:09 
Generalcompile error about void* Pin
George_George16-Jan-08 21:10
George_George16-Jan-08 21:10 
GeneralRe: compile error about void* Pin
Cedric Moonen16-Jan-08 21:20
Cedric Moonen16-Jan-08 21:20 
GeneralRe: compile error about void* Pin
George_George16-Jan-08 21:58
George_George16-Jan-08 21:58 
QuestionRe: compile error about void* Pin
David Crow17-Jan-08 2:34
David Crow17-Jan-08 2:34 
GeneralRe: compile error about void* Pin
George_George17-Jan-08 2:48
George_George17-Jan-08 2:48 
GeneralRe: compile error about void* Pin
David Crow17-Jan-08 3:13
David Crow17-Jan-08 3:13 

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.