Hello
I have written some help files using Html Help Workshop version 4.74.8702
I use the following code to launch the chm file
Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _
(ByVal hwndCaller as long, ByVal pszFile as String, ByVal uCommand as long,
dwData as Any) as Long
Const HH_DISPLAY_TOPIC = $H0
Const HH_HELP_CONTEXT = &HF
Public Sub LaunchHelp ()
Dim hwndHelp as Long
hwndHelp = HtmlHelp(Application.hWndAccessApp, "C:\MyHelp.chm",
HH_HELP_CONTEXT, _
ByVal 1002)
End Sub
When I launch MyHelp.chm from a MSACCESS 2000 application using the code
above the help window
opens displaying the correct help topic but if I close the application with
the help window
still opened I get the following error:
(This program has performed an illegal operation and will be shut down.)
Is there something wrong with the code I am using to launch the chm?
If I open the Microsoft Access Help from the same application
and then close the application while the help window is still opened there
is no error.
Thanks
G Gerard