http://www.rediff.com/getahead/2005/nov/30abr1.htm
Wednesday, November 30, 2005
Wednesday, November 23, 2005
Code to Get Error message from Error Code
HLOCAL hLocal = NULL;
DWORD Error_no = GetLastError();
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM FORMAT_MESSAGE_ALLOCATE_BUFFER,
NULL, Error_no, MAKELANGID(LANG_ENGLISH,
SUBLANG_ENGLISH_US),(LPTSTR)&hLocal,
0, NULL);
MessageBox(NULL, (LPCTSTR)LocalLock(hLocal), TEXT("Error"), MB_OK
MB_ICONERROR);
LocalFree(hLocal);
Sunday, November 20, 2005
Subscribe to:
Posts (Atom)