Click here to Skip to main content
15,885,673 members
Articles / Programming Languages / C#

Managed C++ wrapper for ZLib

Rate me:
Please Sign up or sign in to vote.
4.56/5 (14 votes)
3 Mar 2005CPOL9 min read 155.2K   5.7K   46  
.NET wrapper for ZLib, written in MC++
/*
DevelopDotNet
http://www.developdotnet.com

File Created by: Alberto Ferrazzoli
Date: 06/06/2004

Class Description:
ZipException

Notes:

Revision Log - Please mark significant changes in source code in the following format:

Date  -  Time -     Reviewer  -				Comments
18/10/2004			Alberto Ferrazzoli		Added ZipEntry member

*/

#pragma once

#include "ZipEntry.h"

using namespace System;
using namespace System::Runtime::InteropServices;
using namespace System::Runtime::Serialization;
using namespace System::Security;
using namespace System::Security::Permissions;

namespace DevelopDotNet
{
	namespace Compression
	{
		[Serializable]
		public __gc class ZipException : public System::Exception, public ISerializable
		{
		public:
			ZipException();
			ZipException(String* message);
			ZipException(String* message, ZipEntry* entry);
			ZipException(String* message, Exception* inner);
			ZipException(String* message, ZipEntry* entry, Exception* inner);

			__property ZipEntry* get_Entry();
			__property virtual String* get_Message();

			[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter=true)]
			void GetObjectData(SerializationInfo* info, StreamingContext context);

		protected:
			ZipException(SerializationInfo* info, StreamingContext context);

		private:
			[NonSerialized] ZipEntry* _entry;
		};
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions