(zz071007)GetLastError()错误信息

LPSTR lpBuffer;     

DWORD nErrorNo = GetLastError ( );

FormatMessage ( FORMAT_MESSAGE_ALLOCATE_BUFFER   |

          FORMAT_MESSAGE_IGNORE_INSERTS   |

          FORMAT_MESSAGE_FROM_SYSTEM,

          NULL,

         nErrorNo,

          LANG_NEUTRAL,

          (LPTSTR) & lpBuffer,

          0 ,

          NULL );

printf( "%s\n",  lpBuffer );

LocalFree( lpBuffer );

你可能感兴趣的:(error)