/[winpt]/trunk/Src/wptErrors.cpp
ViewVC logotype

Diff of /trunk/Src/wptErrors.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 67 by werner, Wed Nov 2 11:29:44 2005 UTC revision 68 by twoaday, Sat Nov 5 12:00:55 2005 UTC
# Line 74  winpt_strerror (int errid) Line 74  winpt_strerror (int errid)
74      static char buf[256];      static char buf[256];
75                    
76      switch( errid ) {      switch( errid ) {
77        case -1: w32_fmt_msg (buf, 255); return buf;
78      case WPTERR_GENERAL: return _("General error occured");      case WPTERR_GENERAL: return _("General error occured");
79      case WPTERR_FILE_OPEN: return _("Could not open file");      case WPTERR_FILE_OPEN: return _("Could not open file");
80      case WPTERR_FILE_CREAT: return _("Could not create file");      case WPTERR_FILE_CREAT: return _("Could not create file");
# Line 92  winpt_strerror (int errid) Line 93  winpt_strerror (int errid)
93      case WPTERR_CLIP: return _("General Clipboard error");      case WPTERR_CLIP: return _("General Clipboard error");
94      case WPTERR_REGISTRY: sprintf (buf, "%s", _("Registry error: "));      case WPTERR_REGISTRY: sprintf (buf, "%s", _("Registry error: "));
95                            w32_fmt_msg (buf + strlen (buf), 128);                            w32_fmt_msg (buf + strlen (buf), 128);
96                            break;                            return buf;
97      case WPTERR_WINSOCK_INIT: return _("Could not startup Winsock 2 interface");      case WPTERR_WINSOCK_INIT: return _("Could not startup Winsock 2 interface");
98      case WPTERR_WINSOCK_RESOLVE: return _("Could not resolve hostname");      case WPTERR_WINSOCK_RESOLVE: return _("Could not resolve hostname");
99      case WPTERR_WINSOCK_SOCKET: return _("Could not create new socket");      case WPTERR_WINSOCK_SOCKET: return _("Could not create new socket");
# Line 103  winpt_strerror (int errid) Line 104  winpt_strerror (int errid)
104      case WPTERR_KEYSERVER_NOTFOUND: return _("Keyserver returned: no matching keys in database");      case WPTERR_KEYSERVER_NOTFOUND: return _("Keyserver returned: no matching keys in database");
105      case WPTERR_HOTKEY: sprintf (buf, "%s", _("Could not register hotkey: "));      case WPTERR_HOTKEY: sprintf (buf, "%s", _("Could not register hotkey: "));
106                          w32_fmt_msg (buf + strlen (buf), 128);                          w32_fmt_msg (buf + strlen (buf), 128);
107                          break;                          return buf;
108      case WPTERR_DIR_OPEN: return _("Could not open directory");      case WPTERR_DIR_OPEN: return _("Could not open directory");
109      case WPTERR_DIR_CREAT: return _("Could not create directory");      case WPTERR_DIR_CREAT: return _("Could not create directory");
110      case WPTERR_CURR_WND: return _("Could not extract data from the current window");      case WPTERR_CURR_WND: return _("Could not extract data from the current window");

Legend:
Removed from v.67  
changed lines
  Added in v.68

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26