Results 1 to 6 of 6

Thread: HTML Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Novi Sad, Serbia and Montenegro (formerly known as Yugoslavia)
    Posts
    148

    Question

    How can I handle this new help system? I know how to make it's files, but I don't know how to call them from program.

    AtDhVaAnNkCsE
    ( : ns-code : )
    FCP Products

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    x = Shell(app.path & "\help\helpfile.help", 1)
    NXSupport - Your one-stop source for computer help

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986

    ShellExecute is better I think

    Code:
    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
    
    Public Sub Execute(file As String)
        lngResult = ShellExecute(hwnd, "Open", file, "", "", vbNormalFocus)
    End Sub
    
    'Use it like this:
    Execute help.html

    Was that all info you needed?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    whats the diffrence? mine is shorter
    NXSupport - Your one-stop source for computer help

  5. #5
    Guest
    Yours may be shorter Dimava, but the ShellExecute function will launch any file with its default program.
    While the Shell function will load certain program, but try loading a txt file just using Shell.
    You will get an error, you'd have to Shell it with Notepad, while ShellExecute will load it no matter what.

  6. #6
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    ok, I see
    NXSupport - Your one-stop source for computer help

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