|
How to launch a windows help file ? |
Wilson Saunders
Member #5,872
May 2005
|
Can any one tell me how to launch a windows .hlp file from within an allegro program? Specifically what function calls I need to make and what #include is that function in. Also helpfull would be how to flip to a specific page in that help file. ________________________________________________ |
BAF
Member #2,981
December 2002
|
system("start helpfile.hlp"); ? |
Wilson Saunders
Member #5,872
May 2005
|
Thanks BAF that was what I was looking for. You have been a lot more helpfull than google and msdn on this topic. By the way do you know how to make it open on a specific page of that help file? ________________________________________________ |
BAF
Member #2,981
December 2002
|
There are more "friendly" ways, like using the Windows API (they may have specific help stuff, as well) like CreateProcess or whatever, but system will work just fine in most cases. |
Wilson Saunders
Member #5,872
May 2005
|
Since I am not too knowlagable in the windows API or even this magical "system" command. I was wondering if I could append any arguments to the string to get the help file to open to a specific page. ________________________________________________ |
Matthew Dalrymple
Member #7,922
October 2006
|
Quote: I am not too knowlagable in ... this magical "system" command
They system() function will execute any command you can in the dos-prompt. To go directly to a certain page in a help file, I don't know if that can be done. Here is what you can do with the start command though
=-----===-----===-----= |
X-G
Member #856
December 2000
|
Just ShellExecute is more straightforward and pretty damn simple too, y'know. -- |
|