C#编写的chm浏览器 [英] C# Writing a chm viewer

查看:124
本文介绍了C#编写的chm浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

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

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

有只有几个部分chm阅读:

There are just a few parts to chm reader:

  • parse CHM file format, extract *.html pages and other files inside CHM file. In Sumatra we use use CHMLib (http://www.jedrea.com/chmlib/) but there are other libraries (http://bonedaddy.net/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 http://code.google.com/p/sumatrapdf/source/browse/trunk/src/ChmEngine.cpp for how we do it in Sumatra)

这篇关于C#编写的chm浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆