亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readme.txt

?? 本程序所用壓縮函數庫在子目錄zipfunc中,在zipfunc目錄下,有兩個子目錄分別包含Release版和Debug版的zipfunc.lib,兩者都是共享鏈接庫編譯生成.同樣,主程序的鏈接也必須用
?? TXT
字號:
Zip and unzip in a MFC way.

	Gilles Vollant did a great job writing zip.c and unzip.c (IO on .zip files using zlib), which are distributed with the zlib library. However using them in a program is quite risky. There is no way to recover from an error occurred during zipping, without memory leaks. Let's say we are out of disk space during packing files. There are two things we can do then; we can close our zipFile and get unexpected results, because the function which performs this action tries to write some buffers left back to the disk (and the stream it operates is already in the error state), or we may leave the zipFile opened and have the buffers not freed.  None of these possibilities was a good solution so I rewrote the code to better handle the errors. I left type names as in the original. 
The main improvements are:
- smart buffers (they free automatically at the destruction eliminating memory leaks when an error occurs) 
- CFile class used instead of stream to manipulate files (throws CFileException)
- operator "new" used to allocate memory (it throws CMemoryException so errors can be easily handled).

The ZipFunc is a static library (you can change it if you want) and statically links with compiled zlib.lib (version 1.13 nowadays). The zlib library can be replaced with a newer version providing you also replace the files: "zlib.h" and "zconf.h".  To add ZipFunc library functionality to your project you need to link the library to the project (e.g.  add "..\ZipFunc\debug(release)\ZipFunc.lib" to Project Settings->Link->Input->Object/library modules) and add ZipFunc directory to the preprocessor searches (Project Settings -> C++ -> Preprocessor -> Additional include directories). You may also need to ignore libc.lib library. The ZipFunc library uses MFC in a static library as a Release Configuration and in a shared library as a Debug Configuration. You may need to adapt this to your needs. The details about the functions use are in the sources.

Here goes the example of use CZipFile:

#include "..\ZipFunc\ZipFile.h"

void CCompresorDlg::OnButton1() 
{
	// getting the file to zip
	CFileDialog fd(TRUE);
	if (fd.DoModal() != IDOK)
		return;

	// adding extension
	CZipFile zf(fd.GetPathName() + ".zip", 0);
	char buf[BUF_SIZE];

	CFile f(fd.GetPathName(), CFile::modeRead);

	zip_fileinfo zi;
	// getting information about the date and the attributes
	// (this is new in ZipFunc)
	zf.UpdateZipInfo(zi, f);

	zf.OpenNewFileInZip(fd.GetFileName(), zi, Z_BEST_COMPRESSION);

	int size_read;
	do
	{
		size_read = f.Read(buf, BUF_SIZE);
		if (size_read)
			zf.WriteInFileInZip(buf, size_read);
		
	}
	while (size_read == BUF_SIZE);

	// cannot be called by the destructor because it may throw an exception
	// (it is not good to throw an exception when another one may be progress)
	zf.Close();
}

And below is an example of using the CUnzipFile:

#include "..\ZipFunc\unzipFile.h"

void CCompresorDlg::OnButton2() 
{
	// getting the file to unzip 
	CFileDialog fd(TRUE);
	if (fd.DoModal() != IDOK)
		return;
	CUnzipFile uf(fd.GetPathName());
	uf.GoToFirstFile();
	unz_file_info ui;

	// 	getting the information about the file 
	// (date, attributes, the size of the filename)
	uf.GetCurrentFileInfo(&ui);

	int iNameSize = ui.size_filename + 1;
	char* pName = new char [iNameSize];

	// get the name of the file
	uf.GetCurrentFileInfo(NULL, pName, iNameSize);

	TCHAR szDir[_MAX_DIR];
	TCHAR szDrive[_MAX_DRIVE];
	_tsplitpath(fd.GetPathName(), szDrive, szDir,NULL, NULL);
	CString szPath = CString(szDrive) + szDir;
	CFile f( szPath + pName, CFile::modeWrite | CFile::modeCreate);

	delete[] pName;
	uf.OpenCurrentFile();
	char buf[BUF_SIZE];


	int size_read;
	do
	{
		size_read = uf.ReadCurrentFile(buf, BUF_SIZE);
		if (size_read > 0)
			f.Write(buf, size_read);
		
	}
	while (size_read == BUF_SIZE);

	// set the original date stamp and attributes to the unpacked file
	// (this function closes the file "f" which is needed to apply
	// the attributes)
	uf.UpdateFileStatus(f, ui);

	// cannot be called by the destructor 
	uf.Close();	
}

	The library throws the following exceptions: CMemoryException, CFileExeption and CZipException. The first two don't need an explanation. The last is thrown when some internal zip or unzip error occurs. (The details, once again, are in the sources). Handling  them may be done in a following way:

try
{
	//	...
	//	some zipping or unzipping here(it may be the one of the previous examples)
}
catch (CException* e)
{
	if (e->IsKindOf( RUNTIME_CLASS( CZipException )))
	{
		CZipException* p = (CZipException*) e;
		//... and so on 
	
	}
	else if (e->IsKindOf( RUNTIME_CLASS( CFileException )))
	{
		CFileException* p = (CFileException*) e;
		//... and so on 
	}
	else // the only possibility is a memory exception I suppose
	{
		//... and so on 
	}
			
	e->Delete();
}

Platform: Visual 6.0/MFC 6.0 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品国产麻豆演员表| 精品久久久久一区| 欧美精选一区二区| 亚洲精品在线免费观看视频| 国产欧美日韩麻豆91| 一区二区三区美女| 免播放器亚洲一区| caoporn国产精品| 精品视频色一区| 久久综合色天天久久综合图片| 国产精品私人影院| 婷婷亚洲久悠悠色悠在线播放| 国产激情精品久久久第一区二区 | 欧美不卡一二三| 中文字幕一区二区三区蜜月| 亚洲成人高清在线| 粉嫩一区二区三区性色av| 欧美亚洲一区三区| 久久久国产精品不卡| 亚洲高清不卡在线观看| 狠狠色综合日日| 在线观看网站黄不卡| wwwwxxxxx欧美| 亚洲国产欧美在线| 不卡一区二区三区四区| 欧美日韩一级片网站| 久久久久国产精品麻豆| 水野朝阳av一区二区三区| 成人av网在线| 精品国精品国产| 亚洲综合色在线| 成人ar影院免费观看视频| 日韩欧美激情一区| 一区二区三区免费| 成人黄色小视频| 久久综合999| 免费观看在线综合| 欧美视频一区二区三区| 国产精品久久久久9999吃药| 美国三级日本三级久久99| 欧美综合在线视频| 日韩美女久久久| 国产不卡视频一区| 精品久久免费看| 蜜臀久久99精品久久久久久9 | 夜夜亚洲天天久久| 成人午夜伦理影院| 久久伊99综合婷婷久久伊| 日韩中文字幕亚洲一区二区va在线 | 欧美色图免费看| 亚洲精品久久久久久国产精华液 | 成人欧美一区二区三区黑人麻豆 | 亚洲人快播电影网| 成人黄色在线视频| 中文字幕欧美三区| 国产sm精品调教视频网站| 久久青草国产手机看片福利盒子| 蜜桃传媒麻豆第一区在线观看| 欧美日韩一区不卡| 亚洲福利一区二区三区| 色狠狠综合天天综合综合| 国产麻豆精品theporn| 91精品国产aⅴ一区二区| 亚洲午夜久久久久久久久电影网| 在线视频综合导航| 亚洲一区在线看| 欧美性猛交xxxx黑人交| 亚洲综合在线视频| 色999日韩国产欧美一区二区| 亚洲免费在线观看视频| 色就色 综合激情| 亚洲一区视频在线观看视频| 欧美三级蜜桃2在线观看| 亚洲午夜一二三区视频| 欧美日韩在线直播| 日韩高清不卡一区二区| 91精品国产手机| 麻豆视频一区二区| 精品福利在线导航| 国产一区欧美二区| 久久久久久免费网| 成人久久18免费网站麻豆| 亚洲欧美在线视频观看| 色噜噜偷拍精品综合在线| 一区二区三区欧美日韩| 欧美日韩一区高清| 视频在线观看一区| 日韩精品一区在线观看| 国模无码大尺度一区二区三区| 久久久777精品电影网影网| 国产综合色精品一区二区三区| 久久久久久久久久久黄色| 国产成人午夜电影网| 1000精品久久久久久久久| 欧美图区在线视频| 日韩不卡手机在线v区| 精品久久久久久亚洲综合网 | 国产农村妇女毛片精品久久麻豆 | 色猫猫国产区一区二在线视频| 亚洲精品免费在线观看| 91精品国产综合久久久久| 美洲天堂一区二卡三卡四卡视频| 久久久欧美精品sm网站| 色综合天天综合色综合av | 欧美一区二区三区四区久久| 激情亚洲综合在线| 中文字幕一区二区在线播放| 一本到三区不卡视频| 日产精品久久久久久久性色| 国产亚洲一区二区三区| 色婷婷av一区二区三区gif| 天天色 色综合| 久久久久国产成人精品亚洲午夜| 91免费观看视频| 日本vs亚洲vs韩国一区三区二区| 日本一区二区三区久久久久久久久不 | 99久久精品国产麻豆演员表| 亚洲国产精品人人做人人爽| 精品国产第一区二区三区观看体验| 国产一区二区三区日韩| 亚洲男同1069视频| 日韩精品一区二区三区在线播放| 99视频在线精品| 蜜桃视频一区二区| 亚洲美女在线一区| 精品国产一区二区三区久久久蜜月| 91捆绑美女网站| 久久99热狠狠色一区二区| 亚洲欧洲国产日本综合| 日韩一区二区三区电影| 94色蜜桃网一区二区三区| 毛片基地黄久久久久久天堂| 18成人在线观看| 精品sm捆绑视频| 欧美日韩国产成人在线91| 成人综合激情网| 久久精品国产第一区二区三区| 国产精品网站在线| 欧美成人女星排行榜| 91精品1区2区| 国产福利视频一区二区三区| 日韩影院在线观看| 亚洲日本va在线观看| 久久久久久久久久久久电影| 91麻豆精品国产91久久久久| 亚洲精品自拍动漫在线| 免费黄网站欧美| www..com久久爱| 精品一区二区三区免费视频| 一区二区免费看| 中文字幕一区av| 久久亚洲私人国产精品va媚药| 777亚洲妇女| 91久久精品一区二区三| eeuss鲁片一区二区三区 | 2022国产精品视频| 在线综合+亚洲+欧美中文字幕| 日本高清不卡aⅴ免费网站| 国产v日产∨综合v精品视频| 久久99国产精品麻豆| 日韩电影在线免费观看| 亚洲伊人伊色伊影伊综合网| 亚洲色欲色欲www| 欧美国产激情二区三区| 2017欧美狠狠色| 日韩三级伦理片妻子的秘密按摩| 欧美日韩一本到| 欧美亚洲国产bt| 欧美一a一片一级一片| 色拍拍在线精品视频8848| 99久久伊人精品| 成人免费黄色在线| 高清成人在线观看| 成人免费va视频| 成人黄色777网| 丁香天五香天堂综合| 国产高清精品在线| 国产99久久久久| 丁香啪啪综合成人亚洲小说 | 亚洲桃色在线一区| 亚洲日本一区二区三区| 亚洲精品一二三| 一区二区理论电影在线观看| 亚洲一区二区欧美日韩| 亚洲一区二区三区小说| 五月天一区二区三区| 日韩成人午夜电影| 日本免费在线视频不卡一不卡二| 奇米888四色在线精品| 蜜臀av性久久久久蜜臀aⅴ流畅| 免费欧美日韩国产三级电影| 久久国产欧美日韩精品| 久久中文娱乐网| 日韩精品一区二区三区中文不卡| 精品国产一区二区三区久久影院 | 国产精品1024| 成人黄色电影在线| 亚洲男同1069视频| 亚洲精品视频观看| 午夜视频在线观看一区二区三区 |