#19 Errors show error codes instead of messages

open
nobody
GUI (26)
5
2009-01-11
2009-01-11
Kimmo Varis
No

When some operations fail (like loading a file) then error code is shown in message. Instead there should be error message. Users have no idea what those system error codes mean.

In file loading code:

char buf[500];
sprintf(buf, "Error code 0x%x occured while opening file %s.", errno, fname);
MessageBox(hwnd, buf, "Load error", MB_ICONERROR);

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks