/[H7]/trunk/H7 Server/Serial.cpp
ViewVC logotype

Diff of /trunk/H7 Server/Serial.cpp

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

revision 63 by hedin, Thu Feb 1 13:49:01 2007 UTC revision 64 by hedin, Tue Feb 6 14:19:39 2007 UTC
# Line 11  Line 11 
11  std::string writeLastError()  std::string writeLastError()
12  {  {
13          LPVOID lpMsgBuf;          LPVOID lpMsgBuf;
14            UINT error = GetLastError();
15          FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,          FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
16                          NULL,                          NULL,
17                          GetLastError(),                          error,
18                          MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),                          MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
19                          (LPSTR) &lpMsgBuf,                          (LPSTR) &lpMsgBuf,
20                          0,                          0,

Legend:
Removed from v.63  
changed lines
  Added in v.64

  ViewVC Help
Powered by ViewVC 1.1.20