CHM-files with similar names

Please post all questions relating to Help & Manual 6 here!

Moderators: Alexander Halser, Tim Green

Post Reply
Irina Ivanova
Posts: 12
Joined: Tue Nov 17, 2015 1:54 pm

CHM-files with similar names

Unread post by Irina Ivanova »

Hello!
We are facing the following situation.
Our help system consists of a number of chm-files. But, due to our clients' requirements, they all have the same Table of Contents. This common TOC is in a specially created project.
Common_Table_of_contents.png
And is used by each help file thanks to configuration option "Table of contents of master file".
Table_of_contents_of_master_file.png
There are 2 files: AllSys.chm and Sys.chm. They both have "Sys" in their names. And now this is a problem, as we believe. If after entering our system we call to open help file AllSys.chm, close it, then we try to call Sys.chm in another part of our system, but it opens with a mistake. Our programmers found out, that when we open Sys.chm after AllSys.chm, help system still finds AllSys.chm first. And this causes the mistake.
Problem had not existed before we created common Table of Contents, and also it does not appear if we open Sys.chm and AllSys.chm later. And the mistake does not exist if we change name of the file, or simply remove file with common Table of Contents.

Have you ever heard of such situation?
Could you offer us something except for changing name of the file.
Thanks in advance!
Irina
You do not have the required permissions to view the files attached to this post.
User avatar
Alexander Halser
EC-Software Support
Posts: 4098
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: CHM-files with similar names

Unread post by Alexander Halser »

Please delete all CHW (not CHM) files in the CHM output folder. Does it work after that?
The CHW file is an merged index file that is created on the fly. It will be recreated automatically by Windows.

Furthermore, make sure that you set the current directory right before you call the HTML Help file. Although you specify the CHM with full path in the HTML Help API call, set the current directory to the path of the CHM file as well.
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Alexander Halser
Senior Software Architect, EC Software GmbH
Irina Ivanova
Posts: 12
Joined: Tue Nov 17, 2015 1:54 pm

Re: CHM-files with similar names

Unread post by Irina Ivanova »

Thank you for reply! There are no CHW files after publishing. We found out that there are problems with opening Sys.chm after any file with "sys" in the end of it's name. Most likely we will change the name of AllSys.chm and will keep all this in mind to avoid such problems in the future.
Post Reply