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
ZipException.h
Package: 200521510444455.rar [view]
Upload User: sfdasf1q
Upload Date: 2021-05-08
Package Size: 99k
Code Size: 2k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- // ZipException.h: interface for the CZipException class.
- //
- // Copyright (C) 2000 Tadeusz Dracz
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_ZIPEXCEPTION_H__E3546921_D728_11D3_B7C7_E77339672847__INCLUDED_)
- #define AFX_ZIPEXCEPTION_H__E3546921_D728_11D3_B7C7_E77339672847__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CZipException : public CException
- {
- public:
- DECLARE_DYNAMIC(CZipException)
- // sygnalize whether the error occured during zip or unzip
- bool m_bDuringZip;
- // convert zlib library error code to a ZipException code
- static int ZipErrToCause(int iZipError);
- // name of the zip file where the error occured
- CString m_szFileName;
- enum
- {
- noError,
- generic,
- streamEnd,
- needDict,
- errNo,
- streamError,
- dataError,
- memError,
- bufError,
- versionError,
- badFuncParam,
- badZipFile,
- badCrc,
- };
- // cause - takes one of the codes above
- int m_iCause;
- CZipException(int iCause = generic, LPCTSTR lpszZipName = NULL, bool bDuringZip = true);
- virtual ~CZipException();
- };
- // throw zip exception
- // Parameters:
- // iZipError - zlib error code
- // lpszZipName - name of the file where the error occured
- // bzipFile - true if the error occured while compression,
- // false - decompression
- void AfxThrowZipException(int iZipError = 1000, LPCTSTR lpszZipName = NULL, bool bZipFile = true);
- #endif // !defined(AFX_ZIPEXCEPTION_H__E3546921_D728_11D3_B7C7_E77339672847__INCLUDED_)