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
Printable View
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
x = Shell(app.path & "\help\helpfile.help", 1)
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?
whats the diffrence? mine is shorter
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.
ok, I see