Windows mobile中有自带压缩包解压算法吗?

weakwater 2009-07-31 10:34:10
想在Windows mobile手机端做解压,压缩包里有多个文件,Windows mobile有什么算法吗?
还是需要自己写?

这个压缩包是用户打包后上传的,不过可以指定他们打包成zip或者rar,手机端需要解压!
...全文
337 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
希熙 2009-09-19
  • 打赏
  • 举报
回复
有解决办法了吗??下载不了啊
dreamstone 2009-08-17
  • 打赏
  • 举报
回复
代码还能下载吗?
试了下,下载不了啊。
载舟之水 2009-08-05
  • 打赏
  • 举报
回复
提取码没问题的,我重新传一次

http://51.dc.ftn.qq.com/ftn_handler/b6fe4f98bb357cd5abdaded879b5eee0c1a4406b0582c5ad627b77ba61c647f9ca2d74cabdc2e9868c5c3b6d51082c77718a2c1468d0c1143988b77c917efcc2/TESTCAB.7z?k=0a3463616c789fceb549d6731337531e5155050451545106190d0751571a55000d554e590d02581c070d50025051575403045351353d61657167372274754f064e34

(提取码 44ca57a1)
chxy85 2009-08-05
  • 打赏
  • 举报
回复
请核实提取码....汗...
载舟之水 2009-08-04
  • 打赏
  • 举报
回复
补充一下,SDK下倒是有打包CAB的工具,但给用户使用可能存在不方便,
而PC上自带打包工具C:\WINDOWS\system32\iexpress.exe
载舟之水 2009-08-04
  • 打赏
  • 举报
回复
我查了一下,确认了这几个h和lib在AKU下面才有。
我写了一个例子测试了一下,能成功解压WM格式的CAB,
但PC上的CAB似乎不行,因为CAB好像也分ARM和X86,还有分系统。

有兴趣的可以去下载,是调通的代码。

http://61.dc.ftn.qq.com/ftn_handler/8084ae1ad246eb3cd19282254f4f8194dfd7830fbbfff2eb25998a65ff1b1273cf69f953aace173326c152cc24aa91832d0719cdda988c0312485a16ae3fd41f/TESTCAB.7z?k=0a3463616c789fceb549d6731337531e5155050451545106190d0751571a55000d554e590d02581c070d50025051575403045351353d61657167372274754f064e34

(提取码 44ca57a1)

int _tmain(int argc, _TCHAR* argv[])
{
HCAB hCab = NULL;
HRESULT hr = CAB_Open(_T("\\My Documents\\TESTCAB_WM.cab"), &hCab);
if(hCab != NULL)
{
CAB_ExtractAll(hCab, _T("\\My Documents"));

CAB_Close(hCab);
}

return 0;
}
chxy85 2009-08-04
  • 打赏
  • 举报
回复
nbcool兄 :
我在WM6SDK的H文件中都搜索不到cabapi.h,请教这哪里来的???
载舟之水 2009-08-04
  • 打赏
  • 举报
回复
MSDN里基本没有Window Mobile的帮助。要去看 WindowsMobile6_Documentation_February242009.chm
xiaoqiang9946 2009-08-04
  • 打赏
  • 举报
回复
好像找不到cabapi.h这个头啊,那些函数在MSDN里面也查不到啊
载舟之水 2009-07-31
  • 打赏
  • 举报
回复
如果格式是cab的话,可以用系统api解压,CABAPI Functions
世外涛缘 2009-07-31
  • 打赏
  • 举报
回复
http://www.devdiv.net/viewthread.php?tid=8511&page=1#pid35895
世外涛缘 2009-07-31
  • 打赏
  • 举报
回复
有个开源的类库SharpZipLib
其中压缩对应GZipOutputStream
解压缩对应GZipInputStream

可以在如下站点找到:
www.icsharpcode.net/OpenSource/SharpZipLib/
sevenzhy 2009-07-31
  • 打赏
  • 举报
回复
好帖,收藏了。
ppc_2008 2009-07-31
  • 打赏
  • 举报
回复
ding
载舟之水 2009-07-31
  • 打赏
  • 举报
回复
Requirements
Header cabapi.h
Library cabapi.lib
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later,
Smartphone for Windows Mobile Version 5.0 and later

5.0以上应该都有的
载舟之水 2009-07-31
  • 打赏
  • 举报
回复
就在Windows Mobile Documentation.chm里啊,我的是6.5的,以前的版本删掉了,不记得有没有了。
CAB_Close
This function closes a CAB file.

CAB_Extract
This function extracts a file from the CAB file and stores it in a specified location.

CAB_ExtractAll
This function extracts all files in a specified CAB file.

CAB_ExtractAndDeleteAll
This function destructively extracts all of the files from the back of the CAB file and stores them at the specified path.

CAB_ExtractEx
This function extracts a file from the CAB file and stores it in a specified location, based on flags that customize the operation.

CAB_FindFirstFile
This function validates a CAB file and returns the name of the first file in a specified buffer.

CAB_FindNextFile
This function validates the CAB file and returns the name of the next file in a specified buffer.

CAB_FreeCertificateData
This function frees the memory allocated to hold certificate data.

CAB_GetCertificateData
This function retrieves the certificate data attached to a CAB file.

CAB_Open
This function opens a CAB file.

CAB_VerifyFileSignature
This function extracts the signature block from a CAB file, and then validates the signature block and CAB file.

世外涛缘 2009-07-31
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 nbcool 的回复:]
如果格式是cab的话,可以用系统api解压,CABAPI Functions
[/Quote]

请问在哪能查到?帮助文档里怎么没有呢?

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧