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
ErrorMessage.h
Package: ipfilter.zip [view]
Upload User: nnxzhh
Upload Date: 2007-01-11
Package Size: 742k
Code Size: 2k
Category:
Firewall-Security
Development Platform:
WINDOWS
- ///////////////////////////////////////////////////////////////////////////////
- //
- // (C) Copyright 1999 - 2000 Mark Roddy
- // All Rights Reserved
- //
- // Hollis Technology Solutions
- // 94 Dow Road
- // Hollis, NH 03049
- // info@hollistech.com
- //
- // Synopsis:
- //
- //
- // Version Information:
- //
- // $Header: /iphook/usr/IpMonitor/ErrorMessage.h 2 1/27/00 10:35p Markr $
- //
- ///////////////////////////////////////////////////////////////////////////////
- #ifndef ERROR_MESSAGE_H
- #define ERROR_MESSAGE_H
- __inline void AfxErrorMessage(CString& message, DWORD status)
- {
- LPVOID lpMsgBuf;
- FormatMessage(
- FORMAT_MESSAGE_ALLOCATE_BUFFER |
- FORMAT_MESSAGE_FROM_SYSTEM |
- FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL,
- status,
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
- (LPTSTR) &lpMsgBuf,
- 0,
- NULL
- );
- if (message.Right(1) != _T(":")) {
- message += CString(": ");
- }
- message += CString((LPCTSTR) lpMsgBuf);
- LocalFree( lpMsgBuf );
- }
- __inline CString& AfxErrorMessageEx(CString& message, DWORD status)
- {
- AfxErrorMessage(message, status);
- return message;
- }
- __inline void AfxErrorMessageBox(CString& message, DWORD status)
- {
- AfxErrorMessage(message, status);
- AfxMessageBox( LPCTSTR(message));
- }
- #endif
- ///////////////////////////////////////////////////////////////////////////////
- //
- // Change History Log
- //
- // $Log: /iphook/usr/IpMonitor/ErrorMessage.h $
- //
- // 2 1/27/00 10:35p Markr
- // Prepare to release!
- //
- ///////////////////////////////////////////////////////////////////////////////