⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ziplibs.h

📁 zip算法的源码
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef ZipLibsH
#define ZipLibsH

#include <vcl\classes.hpp>

//---------------------------------------------------------------------------
namespace TZipLibs
{

typedef const char *dllargs[3];
//dllargs UnzArgs = {"name","aaa","bbb"};

typedef int __stdcall (*ZDllExecAddress)(void*);
typedef int __stdcall (*ZDllVersionAddress)(void);
typedef int __stdcall (*ZDllPrivFuncAddress)(void);

class TZipLib
{
private:
	HINSTANCE hndl;
	int IsZip;
	AnsiString fPath;
	System::TObject* fOwner;
	int loadLevel;
	int fVer;
  int fPriv;
	AnsiString TmpFileName;
  int __fastcall GetVer(void);
  AnsiString __fastcall GetPath(void);
  int __fastcall GetPriv(void);
	int __fastcall GetLoaded(void);
	AnsiString __fastcall GetLoadedPath(void);
	ZDllExecAddress fExecFunc;
	ZDllVersionAddress fVersFunc;
  ZDllPrivFuncAddress fPrivFunc;
protected:
    void Clear(void);
		int DoExec(void *info, int minver);
		int DoLoad(int level);
		int DoUnload(int level);
    int Expand(AnsiString src,AnsiString dest);
		AnsiString __fastcall GetResDllPath(void);
    int LoadLib(AnsiString FullPath, bool AllowNotExist);
public:
		TZipLib(TObject *owner, bool type);
		~TZipLib(void);
		int LoadDll(int minver, bool level=false);	// true = keep loaded
		void Unload(bool level=false);
		__property String Path = {read=GetPath};
		__property int Version = {read=GetVer};
		__property int Loaded = {read=GetLoaded};
    __property int Build = {read=GetPriv};
};

} /* namespace TZipLibs */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace TZipLibs;
#endif
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -