Results 1 to 4 of 4

Thread: Running a *.chm file in VB 6

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Rotterdam, Zuid-Holland, Netherlands
    Posts
    12

    Post

    Hi there...
    Hopefully someone can help me.

    I'm trying to run a chm (compiled HTML File) in VB, but i can't figure out how to do so.

    If there is someone who can help me... please do so.

    Thanks.

  2. #2
    Addicted Member
    Join Date
    May 1999
    Location
    Californ-I- A
    Posts
    207

    Post

    What do you mean by "Run" it. Do you mean you're trying to write your own viewer for it instead of HTML Help Viewer?

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Rotterdam, Zuid-Holland, Netherlands
    Posts
    12

    Post

    No, by running it I mean that I made a help file with extention *.chm that can be run stand alone.
    But the thing is, I want to start the help file using my own application.

    Thanks.

  4. #4
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141

    Post

    Aaron Young Posted an answer to a similar question on how
    to open a file with it's associated application.
    Here is a copy of Aaron's posting:

    -----
    Use the ShellExecute API,
    it launches a files Associated Application:
    code:
    ---------------------------------------------------
    Code:
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    
    Private Sub Command1_Click()
        ShellExecute 0&, "OPEN", "C:\File.chm", "", "", 1
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width