Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't run chm file from exe menu
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00882881
Message ID:
00883326
Views:
9
Hi Phil

We couldn't get chm files to work properly in a runtime environment (they work fine in a development environment, but like so much of VFP8 it only works when you use a workaround - its so broken, but I digress, sorry), so ended up using a routine we got from the universal thread, even though we distributed the help dll and exe, and hhupd.exe (installed for Win95 and NT machines only, the others already have it - latest ver available from M$).

You might try this instead...wherever you invoke "help" change it to "do DoHelp". We'll probably extend this to do context sensitive lookups by using a global var to hold the help ID (its all very well having a place to store it [ID] on forms etc, but damn useless when you invoke help - arrgghhhh!, but again I am digressing) and the extra parameters might not work - don't know, but this works fine.

Cheers, Matt.

* --------------------------------------------
procedure DoHelp
private mcFile
declare integer ShellExecute in Shell32.dll ;
integer hwnd, ;
string lpVerb, ;
String lpFile, ;
string lpParameters, ;
string lpDirectory, ;
long nShowCmd

mcFile=SYS(5)+SYS(2003)+'\winpay.chm'
* run hh.exe with the .chm file as a parameter in the show mode of 1
=ShellExecute(0, "Open", "hh.exe", mcFile, "", 1)

return
Previous
Reply
Map
View

Click here to load this message in the networking platform