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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only