Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


html context sensitive help crahes my exe

Posted on 2007-08-07
Medium Priority
Last Modified: 2010-04-30
Hi experts
I am working on a program that dowloads files. I just noticed that if i open my html help with a context id # and then close the help. I am getting a path/file access error and vb crashes when i run my downloader. I read about this at microsoft and stated it applied to working in the IDE. I compiled to exe and it still happens. I can open the help to the main menu without using context id's and it does not happen.
I have also tried this Call HtmlHelp(Me.hWnd, "", HH_CLOSE_ALL, 0), before starting my download with no success. How can i correct this?
Question by:isnoend2001

Accepted Solution

tward earned 1000 total points
ID: 19653101
This has always work just fine for me:

Private Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, ByVal pszFile As String, Byval uCommand As Long, ByVal dwData As Long) As Long

Private Const mcHelpContext = &HF

Dim ContextID As Long

Call HtmlHelp(Me.hWnd, App.HelpFile, mcHelpContext, ContextID)

Author Comment

ID: 19655677
I'm giving the points because you were the only reply. I tried your way and got the result.
I fixed the prob by moving the download location to a tmp folder. The weird part of this if i opened help to the index and closed, no problem, only when i opened a context number

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question