devxlogo

Using ShowHelp with Windows 95 and NT

Using ShowHelp with Windows 95 and NT

Question:
When we call the ShowHelp function in Windows 95, it works with a topic ID but not with a keyword. However, the same source works just the opposite in NT: a topic ID does not work, but a keyword does. We have both environments and need a solution that will work in both situations. Can you help us?

Answer:
I would recommend using the Windows API in place of the PowerBuilder functions. The API is more reliable and has features not supported by PowerBuilder, such as contents pages.

The API call is defined as:

 function long WinHelpA(ulong hwind, string lpszHelp, &   uint uCommand, ulong dwData) library "user32" 

You will also need the following constants:

 Protected:integer HELP_CONTEXT = 1integer HELP_CONTENTS = 3integer HELP_CONTEXTPOPUP = 8integer HELP_FINDER = 11

Then call the function, such as:

WinHelp( 0, , HELP_FINDER, 0 )

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist