C#编写的chm浏览器

编程入门 行业动态 更新时间:2024-10-23 13:37:19
本文介绍了C#编写的chm浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想用C#CHM浏览器。什么样的资源/信息可以帮助我做到这一点?

I want to write CHM viewer in C#. What resources/information could help me do that?

推荐答案

我写了一个CHM浏览器,在C ++中,作为SumatraPDF的一部分( blog.kowalczyk.info/software/sumatrapdf/free-pdf -reader.html )。它是开源的,所以你可以将代码移植到C#( code.google/p 。/ sumatrapdf / )

I have written a chm viewer, in C++, as part of SumatraPDF (blog.kowalczyk.info/software/sumatrapdf/free-pdf-reader.html). It's open-source so you could port the code to C# (code.google/p/sumatrapdf/).

有只有几个部分chm阅读:

There are just a few parts to chm reader:

  • 解析CHM文件格式,提取*。html的网页和其他文件CHM文件中。在苏门答腊岛,我们使用使用CHMLib( www.jedrea/chmlib/ ),但有其他的库( bonedaddy/pabs3/code/#hhm )
  • 显示的.html页面,这是在C#/非常容易。NET通过使用Web浏览器控件
  • 有可能要实施的附加功能内容如表。内容表需要解析出一个CHMindex文件,并建设有节点的树状视图(你可以看的 code.google/p/sumatrapdf/source/browse/trunk/src/ChmEngine.cpp 了解我们是如何做到这一点在苏门答腊)
  • parse CHM file format, extract *.html pages and other files inside CHM file. In Sumatra we use use CHMLib (www.jedrea/chmlib/) but there are other libraries (bonedaddy/pabs3/code/#hhm)
  • display .html pages, which is very easy in C#/.NET by using a web browser control
  • there are additional features you might want to implement like table of contents. Table of contents requires parsing out a CHMindex file and building a tree view with nodes (you can look at code.google/p/sumatrapdf/source/browse/trunk/src/ChmEngine.cpp for how we do it in Sumatra)

更多推荐

C#编写的chm浏览器

本文发布于:2023-10-11 22:40:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1483044.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:浏览器   chm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!