Thursday, October 2, 2008

Resolved .chm files were unable to open

Problem: I am unable to open .chm file, no error upon opening, just showing waiting signal from curosor shape but file never open. Doing a little search on google resove my issue.

Background: Microsoft Compiled HTML Help is a proprietary format for online help files, developed by Microsoft and first released in 1997. CHM format is optimized for reading, as files are heavily indexed. All files are compressed together with LZX compression.

On Windows, a CHM file can be extracted to plain HTML with the command:

hh.exe -decompile extracted filename.chm

Solution:
Some users are unable to open these help files. They may experience this in one of two different ways:
  1. Search for the file hhctrl.ocx. This file should be in the C:\Windows\System32 or C:\Windows\System directory.


  2. Go to the Windows Start menu and select run. Then type the command:
    regsvr32 &ltdirectory>

    Where &ltdirectory> is the location where hhctrl.ocx is installed. This step will register the DLL with the ActiveX server.

    For instance:

    regsvr32 C:\Windows\System32\hhctrl.ocx

Once these steps have been completed, the user should be able to open the help files.

References:
http://digital.ni.com/public.nsf/allkb/BE8DBEC6B8590DEE862572220057B9B2
http://en.wikipedia.org/wiki/CHM





No comments: