- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
UnrarObject.h
资源名称:MyUnRar.rar [点击查看]
上传用户:sz4588
上传日期:2022-05-26
资源大小:2253k
文件大小:3k
源码类别:
压缩解压
开发平台:
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_)