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
ProvExce.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 2k
Category:
Game Server Simulator
Development Platform:
C/C++
- //***************************************************************************
- //
- // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
- //
- // ProvExce.h
- //
- // Purpose: Exception handling classes
- //
- //***************************************************************************
- #if _MSC_VER > 1000
- #pragma once
- #endif
- #ifndef _PROVIDER_EXCEPT_H
- #define _PROVIDER_EXCEPT_H
- /**************************************************************
- *
- **************************************************************/
- #include <eh.h>
- /**************************************************************
- *
- **************************************************************/
- class CHeap_Exception
- {
- public:
- enum HEAP_ERROR
- {
- E_ALLOCATION_ERROR = 0 ,
- E_FREE_ERROR
- };
- private:
- HEAP_ERROR m_Error;
- public:
- CHeap_Exception ( HEAP_ERROR e ) : m_Error ( e ) {}
- ~CHeap_Exception () {}
- HEAP_ERROR GetError() { return m_Error ; }
- } ;
- /**************************************************************
- *
- **************************************************************/
- class CStructured_Exception
- {
- private:
- UINT m_nSE ;
- EXCEPTION_POINTERS *m_pExp ;
- public:
- CStructured_Exception () {}
- CStructured_Exception ( UINT n , EXCEPTION_POINTERS *pExp ) : m_nSE ( n ) , m_pExp ( pExp ) {}
- ~CStructured_Exception () {}
- UINT GetSENumber () { return m_nSE ; }
- EXCEPTION_POINTERS *GetExtendedInfo() { return m_pExp ; }
- } ;
- /**************************************************************
- *
- **************************************************************/
- class CSetStructuredExceptionHandler
- {
- private:
- _se_translator_function m_PrevFunc ;
- public:
- static void _cdecl trans_func ( UINT u , EXCEPTION_POINTERS *pExp )
- {
- throw CStructured_Exception ( u , pExp ) ;
- }
- CSetStructuredExceptionHandler () : m_PrevFunc ( NULL )
- {
- m_PrevFunc = _set_se_translator ( trans_func ) ;
- }
- ~CSetStructuredExceptionHandler ()
- {
- _set_se_translator ( m_PrevFunc ) ;
- }
- } ;
- /**************************************************************
- *
- **************************************************************/
- #endif //_PROVIDER_EXCEPT_H