chm的文件格式不知大家是否知道?
http://www.speakeasy.org/~russotto/chm/chmformat.html
我想读出chm文件的内容,请问如何操作呢?
http://www.speakeasy.org/~russotto/chm/chmformat.html
我想读出chm文件的内容,请问如何操作呢?
解决方案 »
- 如何在Delphi7下把汉字字符串转换成这个结果
- ADOQuery.append后,为什么ADOQuery.recNo变成-1了呢?append后我要使用这个recNo有用的
- xlgrid的打印问题
- 怎样在Delphi中打开cmd.exe并执行一个命令‘dir’?
- delphi中如何判断一个int数值是奇数还是偶数?
- ※※※※ 求:可以驱动数码相机的三方控件(For delphi5)!※※※※
- 走!!见孔老夫子去。
- 高分需求tapi.pas文件
- IE分级审查的历史记录存放位置
- 能用程序使WINDOWS NT "开始菜单" 无效或隐藏吗?
- Printer.Canvas对象是不是有宽度的限制的啊
- 如何获取一个指定字体中的所有的charset!
我一般都用后者:fileopen,fileseek, fileread,fileclose
0000: char[4] 'PMGL'
0004: DWORD Length of free space and/or quickref area at end of
directory chunk
0008: DWORD Always 0.
000C: DWORD Chunk number of previous listing chunk when reading
directory in sequence (-1 if this is the first listing chunk)
0010: DWORD Chunk number of next listing chunk when reading
directory in sequence (-1 if this is the last listing chunk)
0014: Directory listing entries (to quickref area) Sorted by
filename; the sort is case-insensitive.The quickref area is written backwards from the end of the chunk. One quickref entry exists for every n entries in the file, where n is calculated as 1 + (1 << quickref density). So for density = 2, n = 5. Chunklen-0002: WORD Number of entries in the chunk
Chunklen-0004: WORD Offset of entry n from entry 0
Chunklen-0008: WORD Offset of entry 2n from entry 0
Chunklen-000C: WORD Offset of entry 3n from entry 0
...The format of a directory listing entry is as follows ENCINT: length of name
BYTEs: name (UTF-8 encoded)
ENCINT: content section
ENCINT: offset
ENCINT: length不知道这时如何解决?
fileseek(aHnd, 0, 0);
fileread(aHnd, Buf, 4);
buf -> 'PMGL'
0014: Directory listing entries (to quickref area) Sorted by
filename; the sort is case-insensitive.
如何解决????