Thanks Geoff and Pete Lees! The links you suggested are exactly what I
needed. Using essentially the code in KB315988 I've now got my VB6 program
calling the correct pages of the HTMLhelp file.
One problem I haven't fixed yet is that if the help file is still open when
I end the program that called it, then VB6 crashes. If my program is
compiled to a stand alone exe then the program itself crashes just as I end
it (a little untidy). Any idea why?
> What Version of Vb you got?
> In VB6 HTML Help file support is limited.
[quoted text clipped - 6 lines]
>
> Regards G
Eric - 29 Jul 2004 19:22 GMT
A thought. Is it possible that although the lines:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Call HtmlHelp(0&, "", HH_CLOSE_ALL, ByVal 0&)
End
End Sub
close the help window and stop the VB6 program, the help window might not be
finished closing before the program ends, thus causing a crash???
> Thanks Geoff and Pete Lees! The links you suggested are exactly what I
> needed. Using essentially the code in KB315988 I've now got my VB6 program
[quoted text clipped - 17 lines]
> >
> > Regards G
Pete Lees - 30 Jul 2004 19:50 GMT
Eric,
> One problem I haven't fixed yet is that if the help file is still open when
> I end the program that called it, then VB6 crashes. If my program is
> compiled to a stand alone exe then the program itself crashes just as I end
> it (a little untidy). Any idea why?
See if the tips at http://helpware.net/FAR/far_faq.htm#HH_CLOSE_ALL help.

Signature
Pete (Microsoft Help MVP)