FormatMessage 错误消息
来源:互联网 发布:小学生阅读软件下载 编辑:程序博客网 时间:2024/05/29 17:19
// Get the error codeDWORD dwError = GetDlgItemInt(IDC_EDIT1);HLOCAL hlocal = NULL; // Buffer that gets the error message string// Use the default system locale since we look for Windows messages.// Note: this MAKELANGID combination has 0 as valueDWORD systemLocale = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL);// Get the error code's textual descriptionBOOL fOk = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS |FORMAT_MESSAGE_ALLOCATE_BUFFER,NULL, dwError, systemLocale,(PTSTR) &hlocal, 0, NULL);SetDlgItemText(IDC_TEXTOUT,(PTSTR) LocalLock(hlocal));
0 0
- FormatMessage 错误消息
- FormatMessage错误消息处理函数
- 如何获取错误消息说明使用 FormatMessage API
- FormatMessage
- FormatMessage
- FormatMessage
- FormatMessage
- FormatMessage
- FormatMessage
- FormatMessage
- formatmessage
- FormatMessage通过错误码取出错误文本
- MFC 中错误处理信息FormatMessage
- 利用FormatMessage函数获取错误描述
- 使用FormatMessage获取由GetLastError得到的错误的描述
- 使用FormatMessage函数编写一个内核错误码查看器
- FormatMessage &GetLastError
- FormatMessage 浅析
- PAT(A) 1020
- objective-c循环retain和@class
- Apache下http协议内容压缩降低访问流量提升速度
- LayoutInflater的使用,inflate
- Linux ELF格式文件解析之relocation和entry入口点,基于gas汇编语言视角
- FormatMessage 错误消息
- 红黑树
- 引导滤波的opencv实现
- 605662545对创业的22个提示
- 牛腩新闻发布系统小结
- 表达式求值
- 2012年数据库技术大会演讲PPT打包
- 第三章 栈和队列
- Audio Effect的名词解释