Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Intermediate
Aug 6, 1997



Application Security Testing: An Integral Part of DevOps

Open Help File Contents

Most programmers want their applications to look like commercial software, so they want to add their own help files. How do you open the contents of a Windows help file in your application? Simply paste in this code, which uses Win32 API function:
' ---- Declares
' Display contents
Declare Function WinHelp Lib "user32" _
        Alias "WinHelpA" _
        (ByVal hwnd As Long, _
        ByVal lpHelpFile As String, _
        ByVal wCommand As Long, _
        ByVal dwData As Long) As Long

' --- Code
Sub OpenHelpFile(HelpFileName As String)
        ' HelpFileName is the path of the 
        ' help file.
        WinHelp hwnd, HelpFileName, _
                HELP_CONTENTS, 0
End Sub
Huang Xiongbai
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date