2013年9月25日

GetLastError的学习

摘要: dwError = GetLastError();HLOCAL hlocal = NULL; //Get the error code's textual description BOOL fOk = FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER, NULL, dwError, MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), (PTSTR)&hlocal, 0, NULL); if (hlocal != NULL) { AfxMes 阅读全文

posted @ 2013-09-25 16:11 bamboo_lady 阅读(129) 评论(0) 推荐(0) 编辑

导航