简体   繁体   English

在应用程序本身中嵌入 *.chm 帮助文件(C# Winform)

[英]Embedding *.chm help file in application itself (C# Winform)

How can I include/embed.*chm help file in application itself (not as separate file in output)?如何在应用程序本身中包含/嵌入.*chm 帮助文件(而不是作为输出中的单独文件)? Can it be placed in "Resources.resx" and read from there?它可以放在“Resources.resx”中并从那里读取吗? I tried this method but it seems that it doesn't work...我试过这个方法,但似乎它不起作用......

Storing the chm in a resource is a bad idea and difficult to handle, deploy it as a plain file.将 chm 存储在资源中是一个坏主意并且难以处理,请将其部署为纯文件。

Changing and recompiling a CHM file is not an easy task without the associated project file (*.hhp).如果没有相关的项目文件 (*.hhp),更改和重新编译 CHM 文件并非易事。 Therefore, the content is reasonably - but of course not completely - safe.因此,内容是合理的——但当然不是完全安全的。

A user actually makes your software unusable by making changes to the installation path and help content.用户实际上通过更改安装路径和帮助内容使您的软件无法使用。 Updating the help topics must match the version of your app and is your responsibility.更新帮助主题必须与您的应用程序版本相匹配,并且是您的责任。

If it meets your requirements you can think about a so-called web-based help.如果它满足您的要求,您可以考虑所谓的基于 Web 的帮助。 Upload your help to a server and add a web browser control to your application.将您的帮助上传到服务器并将 web 浏览器控件添加到您的应用程序。

See also: Best approach to implement Help feature in Windows Desktop Application - Restrict the App knowledge base to authorize access另请参阅: 在 Windows 桌面应用程序中实现帮助功能的最佳方法 - 限制应用程序知识库以授权访问

Old stuff, but have a look at a sample for Uncompressed help here too.旧的东西,但也可以在这里查看未压缩帮助的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM