|
-
Mar 9th, 2000, 12:16 AM
#1
Thread Starter
New Member
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.
-
Mar 9th, 2000, 01:50 AM
#2
Addicted Member
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?
-
Mar 9th, 2000, 03:33 PM
#3
Thread Starter
New Member
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.
-
Mar 14th, 2000, 01:05 PM
#4
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|