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
UnrarObject.h
Package: MyUnRar.rar [view]
Upload User: sz4588
Upload Date: 2022-05-26
Package Size: 2253k
Code Size: 3k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- // UnrarObject.h: interface for the CUnrarObject class.
- //
- //////////////////////////////////////////////////////////////////////
- //-------------------------------------------------------------------------
- // This class is developed by
- //-------------------------------------------------------------------------
- // Dr. David, Xinyu Kou
- // Department of Mechanical Engineering,
- // The University of Kong
- // http://FlashUnpack.3322.org
- //-------------------------------------------------------------------------
- //
- // This class wraps the APIs provided by RARLAB into a MFC object class
- // You can use it freely for your freeware.
- // Commercial uses are NOT ALLOWED unless approved by the the author.
- // Latest update: 2006/07/26
- //-------------------------------------------------------------------------
- #if !defined(AFX_UNRAROBJECT_H__CFAE5F77_FBA3_47DF_B4B1_3F6BA5D41DD4__INCLUDED_)
- #define AFX_UNRAROBJECT_H__CFAE5F77_FBA3_47DF_B4B1_3F6BA5D41DD4__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "AfxTempl.h"
- #include "unrar.h"
- struct CGuiStruct
- {
- CListBox *m_pListBox;
- CStatic *m_pstatic;
- //Append your own controls here, e.g. CTreeListCtrl as you like
- //http://www.codeproject.com/treectrl/treelistcode.asp
- };
- //---------------------------------------------------
- class CUnrarObject
- {
- public:
- CUnrarObject();
- virtual ~CUnrarObject();
- //--------------------------------------------------------------------
- CString m_InputPath;
- CString m_OutputPath;
- int SetInputPath(CString InputPath);
- void SetCleanArchiveOption(bool bRemove);
- //--------------------------------------------------------------------
- // GUI functions
- void ResetGuiControls();
- void Update_Gui_Info(CString Info, BOOL bClearDataFirst=FALSE);
- //--------------------------------------------------------------------
- // Operation functions
- void Unpack(bool bMultiThread=TRUE);
- UINT static UnpackThreadFun(LPVOID pParam); //Multi-thread
- void CleanOriginalArchive(BOOL bClearFilesOnSuccess);
- //--------------------------------------------------------------------
- // Callback functions, must be static
- int static CALLBACK ExtractCallbackProc(UINT msg,LONG UserData,LONG P1,LONG P2);
- protected:
- HANDLE m_hArchive;
- BOOL bCleanOriginalArchive;
- CStringArray UnpackedArchives; //For deletion of the original files
- CGuiStruct* pGUIWindows;
- private:
- };
- #endif // !defined(AFX_UNRAROBJECT_H__CFAE5F77_FBA3_47DF_B4B1_3F6BA5D41DD4__INCLUDED_)