Char szerror [256];
DWORD dwerror = getLastError ();
FormatMessage
Format_message_from_system,
NULL,
0,
Szerror,
Sizeof (Szerror),
NULL);
AfxMessageBox (Szerror);