BUG: HTMLHelp() Opens the Wrong Help File (267962)



The information in this article applies to:

  • Microsoft HTML Help 1.2
  • Microsoft HTML Help 1.21
  • Microsoft HTML Help 1.22
  • Microsoft HTML Help 1.3

This article was previously published under Q267962

SYMPTOMS

When you call the HTMLHelp function to open a specific Help file, a different Help file is displayed. For example, if you call HTMLHelp to open a Help file named HelpMe.chm, when you call HTMLHelp to open a Help file named Help.chm (while HelpMe.chm is still open), HelpMe.chm is displayed, and no error occurs.

CAUSE

This problem occurs when the name of Help file is derived from another Help file that is already open.

RESOLUTION

To work around this problem, name the application's Help files so that any combination of characters prepended to a Help file name do not collide with another Help file name.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Using HelpMe.chm as an example, you encounter the same problem when you attempt to open any of the following files while HelpMe.chm is open:
  • Elpme.chm
  • Lpme.chm
  • Pme.chm
  • Me.chm
  • E.chm

Modification Type:MajorLast Reviewed:4/11/2001
Keywords:kbAPI kbbug kbDSupport KB267962