摘要: void ShowErrMsg() { TCHAR szBuf[80]; LPVOID lpMsgBuf; DWORD dw = GetLastError(); FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,NULL,dw,MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),(LPTSTR) &lpMsgBuf,0, NULL ); MessageBox(NULL, (LPCTSTR)lpMsgBuf, "系统错误", MB_OK|MB_ICONSTO 阅读全文
posted @ 2010-12-16 09:32 skydesign 阅读(336) 评论(0) 推荐(0)
摘要: void abort(void); 功 能: 异常终止一个进程int abs(int i); 功 能: 求整数的绝对值 double acos(double x); 功 能: 反余弦函数double asin(double x); 功 能: 反正弦函数double atan(double x); 功 能: 反正切函数double atan2(double y, double x); 功 能: 计算Y/X的反正切值double atof(const char *nptr); 功 能: 把字符串转换成浮点数int atoi(const char *nptr); 功 能: 把字符串转换成整型数 lo 阅读全文
posted @ 2010-12-16 09:14 skydesign 阅读(203) 评论(0) 推荐(0)