DWORD derr = GetLastError();
derr = derr;
LPVOID lpMsgBuf;
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), 0, // Default language (LPTSTR) &lpMsgBuf, 0, NULL ); // Process any inserts in lpMsgBuf.

// ...
// Display the string.
AfxMessageBox((LPCTSTR)lpMsgBuf);

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2021-12-09
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案