文件名称:完整文件打包解包
文件大小:43KB
文件格式:RAR
更新时间:2015-02-04 05:58:37
文件 打包 解包
void CPackDlg::OnBtnPack()
{
// TODO: Add your control notification handler code here
CFileDialog savedlg(FALSE,NULL,NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,"(类型:*.free)|*.free||");
if (IDOK != savedlg.DoModal())
return;
int nTimeBegin = time(NULL);
int nMiliTimeBegin = timeGetTime();
CString strPathName = savedlg.GetPathName();
CString strExt = savedlg.GetFileExt();
if (strExt!="free")
strPathName+=".free";
int nFileNum = m_listFile.GetCount();
m_progress.SetRange(0,nFileNum);
FILE* pFilePack = fopen(strPathName.GetBuffer(0),"wb");
if(!pFilePack)
return;
int nNumWrite = fwrite(&nFileNum;,sizeof(int),1,pFilePack);
for (int i=0;i
【文件预览】:
Pack
----Pack.opt(52KB)
----resource.h(1KB)
----Pack.plg(242B)
----Pack.clw(2KB)
----Pack.h(1KB)
----PackDlg.h(2KB)
----Pack.aps(36KB)
----Pack.dsw(531B)
----Pack.ncb(97KB)
----ReadMe.txt(3KB)
----Pack.dsp(4KB)
----res()
--------Pack.ico(1KB)
--------Pack.rc2(396B)
----StdAfx.cpp(206B)
----PackDlg.cpp(11KB)
----Pack.cpp(2KB)
----StdAfx.h(1KB)
----Pack.rc(6KB)