printError
来源:互联网 发布:比思论坛最新域名 编辑:程序博客网 时间:2024/04/28 00:28
void printError( TCHAR* msg ){DWORD eNum;TCHAR sysMsg[256];TCHAR* p;eNum = GetLastError( );FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,NULL, eNum,MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),sysMsg, 256, NULL );// Trim the end of the line and terminate it with a nullp = sysMsg;while( ( *p > 31 ) || ( *p == 9 ) )++p;do { *p-- = 0; } while( ( p >= sysMsg ) &&( ( *p == '.' ) || ( *p < 33 ) ) );// Display the message_tprintf( TEXT("\n\t%s failed with error %d (%s)"),msg, eNum, sysMsg );}
0 0
- printError
- 怎么样进行游戏测试
- 怎么在Mac上安装Tomcat 7
- Facebook(二)使用LoginButton实现授权登录并注销授权信息
- 用reset.css重置浏览器默认样式的重要性
- IOS for any added folders
- printError
- 黑马程序员_Java_GUI
- 运输管理协议TMP概述(一)
- androidpn 作为Android推送方案存在的问题
- ubuntu13.10 下 g++和gcc 4.8不兼容无法安装的问题
- 如何将自定义的.jar设置为系统自带的
- poi依赖jar
- android错误:Installation error: INSTALL_FAILED_VERSION_DOWNGRADE
- 空域滤波器