資源簡介
PE格式文件只要不修改文件頭和文件中間的內容,只是在文件末尾添加數據,那么這個PE文件可以正常執行。本程序可將多個文件打為zip包,然后添加在exe程序結尾,再加上zip包長度和PACKAGE標志,程序運行可顯示exe中添加的文件。
PE format files as long as it does not modify the contents of the file header and file middle, just to add data to the end of the file, then the PE file can be run properly.
This software can be playing multiple files as a zip package, and then add at the end of the exe program, plus the the zip packet length and PACKAGE flag, the program runs to display the files in the exe.

代碼片段和文件信息
//?Package.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Package.h“
#include?“PackageDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CPackageApp
BEGIN_MESSAGE_MAP(CPackageApp?CWinApp)
//{{AFX_MSG_MAP(CPackageApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CPackageApp?construction
CPackageApp::CPackageApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CPackageApp?object
CPackageApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CPackageApp?initialization
BOOL?CPackageApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CPackageDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-03-06?20:42??Package\
?????目錄???????????0??2013-03-06?20:42??Package\Debug\
?????文件??????245820??2013-03-06?20:36??Package\Debug\Package.exe
?????文件???????36052??2013-03-06?20:16??Package\Package.aps
?????文件????????1489??2013-03-06?20:42??Package\Package.clw
?????文件????????2077??2013-03-05?14:00??Package\Package.cpp
?????文件????????4550??2013-03-06?20:42??Package\Package.dsp
?????文件?????????537??2013-03-05?16:32??Package\Package.dsw
?????文件????????1335??2013-03-05?14:00??Package\Package.h
?????文件??????123904??2013-03-06?20:42??Package\Package.ncb
?????文件???????55808??2013-03-06?20:42??Package\Package.opt
?????文件????????2181??2013-03-06?20:42??Package\Package.plg
?????文件????????6003??2013-03-06?20:16??Package\Package.rc
?????文件???????26395??2013-03-06?20:42??Package\PackageDlg.cpp
?????文件????????2511??2013-03-06?20:28??Package\PackageDlg.h
?????文件????????3597??2013-03-05?14:00??Package\ReadMe.txt
?????目錄???????????0??2013-03-06?20:42??Package\Release\
?????文件???????81920??2013-03-06?20:42??Package\Release\Package.exe
?????目錄???????????0??2013-03-06?19:48??Package\res\
?????文件????????1078??2013-03-05?14:00??Package\res\Package.ico
?????文件?????????399??2013-03-05?14:00??Package\res\Package.rc2
?????文件????????1007??2013-03-06?20:16??Package\resource.h
?????文件?????????209??2013-03-05?14:00??Package\StdAfx.cpp
?????文件????????1077??2013-03-06?20:17??Package\StdAfx.h
?????文件??????149343??2005-07-28?09:36??Package\unzip.cpp
?????文件???????10118??2005-07-28?01:21??Package\unzip.h
?????文件??????115697??2005-07-27?18:17??Package\zip.cpp
?????文件???????10044??2005-07-28?01:09??Package\zip.h
- 上一篇:VC zip壓縮解壓程序
- 下一篇:冒泡排序 匯編語言
評論
共有 條評論