- Code/Resource
- Windows Develop
- Linux-Unix program
- Internet-Socket-Network
- Web Server
- Browser Client
- Ftp Server
- Ftp Client
- Browser Plugins
- Proxy Server
- Email Server
- Email Client
- WEB Mail
- Firewall-Security
- Telnet Server
- Telnet Client
- ICQ-IM-Chat
- Search Engine
- Sniffer Package capture
- Remote Control
- xml-soap-webservice
- P2P
- WEB(ASP,PHP,...)
- TCP/IP Stack
- SNMP
- Grid Computing
- SilverLight
- DNS
- Cluster Service
- Network Security
- Communication-Mobile
- Game Program
- Editor
- Multimedia program
- Graph program
- Compiler program
- Compress-Decompress algrithms
- Crypt_Decrypt algrithms
- Mathimatics-Numerical algorithms
- MultiLanguage
- Disk/Storage
- Java Develop
- assembly language
- Applications
- Other systems
- Database system
- Embeded-SCM Develop
- FlashMX/Flex
- source in ebook
- Delphi VCL
- OS Develop
- MiddleWare
- MPI
- MacOS develop
- LabView
- ELanguage
- Software/Tools
- E-Books
- Artical/Document
WPERROR.C
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 1k
Category:
Windows Develop
Development Platform:
Visual C++
- /****************************************************************************
- * wperror.c -- sample program library demonstrating NWLink.
- *
- * Microsoft Developer Support
- * Copyright (c) 1992-1997 Microsoft Corporation
- *
- * Demonstrates basic sockets programming with the Windows Sockets API
- * using the NWLink transport.
- *
- ****************************************************************************/
- #include <stdio.h>
- #include <windows.h>
- #include "externs.h"
- /****************************************************************************
- *
- * FUNCTION: win_net_perror( HWND parent, LPSTR p, int tm_flag)
- *
- * PURPOSE: Similar to the perror() function. This will display
- * a dialog box witht an error message showing the last error for
- * the calling process. This should be called IMMEDIATELY after
- * a call has returned an error condition.
- *
- * ARGUMENTS: HWND to the parent window
- * LPSTR => user string to print first
- * int flag set if message box should be task modal
- *
- * RETURNS: nothing.
- *
- ****************************************************************************/
- void win_net_perror(HWND parent, LPSTR p, int tm_flag)
- {
- MessageBox(parent, dos_net_strerror(p), NULL,
- MB_OK | MB_ICONEXCLAMATION | (tm_flag ? MB_TASKMODAL : 0));
- return;
- }