Changeset d05c3f0 in nscp for include/error_impl_unix.hpp
- Timestamp:
- 11/15/09 17:20:03 (4 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 92c4b5b
- Parents:
- 3eedfa6
- File:
-
- 1 edited
-
include/error_impl_unix.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
include/error_impl_unix.hpp
r7f9c823 rd05c3f0 6 6 class format { 7 7 public: 8 static std::wstring from_system(unsigned long dwError) { 9 return _T("ERROR TODO"); 8 static std::wstring from_system(int dwError) { 9 char buf [1024]; 10 return to_wstring(::strerror_r(dwError, buf, sizeof (buf))); 10 11 } 11 12 static std::wstring from_module(std::wstring module, unsigned long dwError) { … … 41 42 class lookup { 42 43 public: 43 static std::wstring last_error( unsigned longdwLastError = -1) {44 return _T("ERROR TODO");44 static std::wstring last_error(int dwLastError = -1) { 45 return ::error::format::from_system(dwLastError); 45 46 } 46 static std::string last_error_ansi( unsigned longdwLastError = -1) {47 return "ERROR TODO";47 static std::string last_error_ansi(int dwLastError = -1) { 48 return to_string(::error::format::from_system(dwLastError)); 48 49 } 49 50 };
Note: See TracChangeset
for help on using the changeset viewer.








