This is probably so trivial that I'm an idiot for asking for help. But….
I'm trying to figure out how to bring up the help file for my program. Knowing how the ShellExecute API call works (or so I thought), I know (or so I thought) that when you pass it a file the system knows the extension of, it will "run" it correctly. For example, in PBDLL, if you want you application to open the default browser to a specific URL, the following subroutine works quite well:
SUB Open_URL(BYVAL URL AS STRING)
'
' If this is called, the system's defaul browser is started
' and pointed at the URL.
'
DIM URLz AS ASCIIZ*255
DIM Nullz AS ASCIIZ*255
URLz=URL
Nullz=""
CALL ShellExecute(0&, Nullz, URLz, Nullz, Nullz, 1)
END SUB
My understanding is the ShellExecute when passed a file name, checks the system for the application that recognizes it, and runs that application with the passed file handed off to it. So….. I'd had thought in PB DLL that I could use the following to get my application to run the HELP file for the user:
SUB OpenHelp(BYVAL HelpFileName AS STRING)
'
' If this is called, the passed help file in the pplication default
' directory is executed..
'
LOCAL HelpFileNamez AS ASCIIZ*255
LOCAL Nullz AS ASCIIZ*255
HelpFileNamez=HelpFileName
Nullz=""
CALL ShellExecute(0&, Nullz, HelpFileNamez, Nullz, Nullz, 1)
END SUB
Bottom line is my attempt to bring up the help file does not work, but also generates no errors. (Sort of like a doctor burying his mistakes.) But I'd rather it work. J
By the way, I do recognize that if my help files were converted to html, I could avoid this issue.
------------------
Michael Burns
http:\\www.revise.com
I'm trying to figure out how to bring up the help file for my program. Knowing how the ShellExecute API call works (or so I thought), I know (or so I thought) that when you pass it a file the system knows the extension of, it will "run" it correctly. For example, in PBDLL, if you want you application to open the default browser to a specific URL, the following subroutine works quite well:
SUB Open_URL(BYVAL URL AS STRING)
'
' If this is called, the system's defaul browser is started
' and pointed at the URL.
'
DIM URLz AS ASCIIZ*255
DIM Nullz AS ASCIIZ*255
URLz=URL
Nullz=""
CALL ShellExecute(0&, Nullz, URLz, Nullz, Nullz, 1)
END SUB
My understanding is the ShellExecute when passed a file name, checks the system for the application that recognizes it, and runs that application with the passed file handed off to it. So….. I'd had thought in PB DLL that I could use the following to get my application to run the HELP file for the user:
SUB OpenHelp(BYVAL HelpFileName AS STRING)
'
' If this is called, the passed help file in the pplication default
' directory is executed..
'
LOCAL HelpFileNamez AS ASCIIZ*255
LOCAL Nullz AS ASCIIZ*255
HelpFileNamez=HelpFileName
Nullz=""
CALL ShellExecute(0&, Nullz, HelpFileNamez, Nullz, Nullz, 1)
END SUB
Bottom line is my attempt to bring up the help file does not work, but also generates no errors. (Sort of like a doctor burying his mistakes.) But I'd rather it work. J
By the way, I do recognize that if my help files were converted to html, I could avoid this issue.
------------------
Michael Burns
http:\\www.revise.com
Comment