HH.exe可以接受Unicode路径吗? [英] Can HH.exe accept Unicode path?

查看:95
本文介绍了HH.exe可以接受Unicode路径吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经编译了.CHM格式的帮助文档。用户可以按F1在我们的代码中通过ShellExecute()启动帮助文档。如果CHM位于名为 且带有ANSI字符的文件夹下,它可以正常工作。

I've compiled help documentation in .CHM format. User can press F1 to launch help documentation via ShellExecute() in our code. It works fine if that CHM is located under the folder named with ANSI characters.

如果该CHM文件放在以Unicode字符命名的文件夹下,请说日语。 HH.exe将失败并报告"无法打开文件"。

If that CHM file put under folder named with Unicode character, say Japanese. HH.exe will fail and report "cannot open file".

是否限制HH.exe?有没有人有建议?我们应该允许用户根据自己的喜好安装程序,因此我们不想应用路径检查。

Is it limitation of HH.exe? Does anyone have suggestion? We should allow user to install program according to their preference, therefore we do not want to apply path check.

谢谢,

Wesley

Thanks,
Wesley

推荐答案

你好韦斯利

我有2次工作,我用来击败这些ANSI限制HH。

I have 2 work-a-rounds that I use to beat these kind of ANSI limitations in HH.

1。使用CHM文件的短路径。

1. Use the short path to the CHM file.

  使用类似  GetShortPathName()的函数来获取短文件路径。我经常会发现 

  即使HTML帮助最初是Unicode或日语Unicode,HTML帮助也不会窒息。

   Use a function like GetShortPathName() to get the short file path. I usually find 
   HTML Help wont choke on these even if they are were originally Unicode or Japanese Unicode.

  我通常首先转换为ANSI。如果原始的Unicode和新的ANSI路径  b
  我没有Unicode字符,可以使用原始字符串(更易读)。

   I usually convert to ANSI first. If the original Unicode and new ANSI paths 
   are the same then I don't have Unicode chars and can use the original string (more readable).

  为了便于阅读(我编写创作程序),我经常通过&bbsp
  来处理路径段。段,以便只有Unicode文件夹段缩短为\xxxxxx~1 \类型路径。

   For readability (I write authoring programs) I often work up the path segment by 
   segment so that only Unicode folder segments are shortened to \xxxxxx~1\ type paths.

  我希望一切都有意义!!

   I hope that all makes sense!!

 

2。使用hhctrl.ocx库打开CHM

2. Use the hhctrl.ocx library to open the CHM

     HTMLHelp()函数有Wide和ANSI两种风格。

    The HTMLHelp() function comes in both Wide and ANSI flavors.

    可能还需要一条很短的路径..我不记得我的日语路径是否有效。

    May still require a short path.. I can't remember if my Japanese paths work or not.

 

干杯

Rob

Cheers
Rob

 

 


这篇关于HH.exe可以接受Unicode路径吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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