RESOLUTION
By default, the HTML Help ActiveX control (Hhctrl.ocx) runs
in a second thread. To work around this issue, you must force Hhctrl.ocx to run
in a single thread in Visual Basic. You can do this by calling
HtmlHelp with the
HH_INITIALIZE command when Visual Basic loads, and by calling
HtmlHelp with the
HH_UNINITIALIZE command when Visual Basic unloads. To run these commands when
Visual Basic starts, create an add-in that automatically loads when you start
the IDE.
To use this add-in, register
HHCTRLAV.dll by using
regsvr32. To do this, follow these steps:
- Click Start, and then click
Run.
- Type regsvr32
c:\HHCtrlAV\HHCtrlAV.dll.
- Press ENTER.
A message informs you that DLLRegisterServer succeeded.
You must also set up the add-in to be recognized by Visual
Basic, and to be loaded when Visual Basic starts. To do this, add
HHCTRLAV.Connect=1 to the end of the Vbaddin.ini file.
The Vbaddin.ini file is located in C:\Windows or in C:\WinNT.
You can
now start Visual Basic.
HHCtrlAV is in the list of loaded
add-ins. If
HHCtrlAV is started when Visual Basic starts (the
Load on
Startup option is enabled), then you do not receive the access
violation in VB5.EXE or VB6.EXE as a result of Hhctrl.ocx.
The source
code for this add-in is also included. With this source code, you can modify
the add-in. The following
file is available for download from the Microsoft Download
Center:
HHCtrlAV_AddIn.EXE
http://download.microsoft.com/download/3/1/d/31d348d4-10b3-49e2-ad70-acdff964eeb4/HHCtrlAV_AddIn.exe For additional information about how
to download Microsoft Support files, click the following article number to view
the article in the Microsoft Knowledge Base:
119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.