PaulHInstincticve
Programmer
Until recently my VFP9 application used both F1 and ? WhatsThis help quite successfully on all Windows platforms. My main F1 help was a CHM file and my whatsthis help was a HLP file. Recently, however, I upgraded to Vista and of course discovered that Microsoft are now making HLP help obsolete - thanks fellas! I therefore updated my app to use CHM whatsthis files. I imported my HLP file into Help and Manual help system and quickly converted it to a CHM file (which was a piece of cake I should add) and then made a one line change to my program and hey presto - it worked! Problem is, however, it worked on my Vista PC which is also the development PC. I foolishly (or perhaps not!) assumed that because it worked there it would on all platforms, however, I now find that on XP SP2 (and perhaps other platforms not yet tried) when I click the whatsthis button then click on a field that has whatsthis help behind it then nothing happens. I have no idea why not. Can anyone point me in the right direction?
I used the following command to initialise my whatsthis help file originally, this worked on all platforms except Vista
SET HELP TO WHATSTHIS.HLP
I changed this to
SET HELP TO WHATSTHIS.CHM
this works fine on Vista but not on XP SP2
For my F1 context sensitive help, I used the some rather complicated code, which I do not profess to understand. This has remained unchanged and appears to work on ALL platforms - I just copied it and it works and has done for some years. I shouldn't need to bother you with that but just thought I would mention it briefly in case it has any relevance. Here is a sample of part of the code in use. Obviously I pass in certain parameters before it is activated
DECLARE INTEGER HtmlHelp IN "HHCtrl.ocx" AS "HtmHelpA" ;
INTEGER nHWND, ;
STRING cHelpFile, ;
INTEGER nCommand, ;
STRING cTopic
*!* Get the active window handle
DECLARE INTEGER GetFocus IN "user32" AS "GetFocus"
wHnd = GetFocus()
IF wHnd = 0
=MESSAGEBOX("Unable to get window handle.")
RETURN
ENDIF
*!* Call the HTML help system
nRetVal = HtmHelpA(@wHnd, @cHelpFile, @nCommand, cTopic)
Can anyone tell me why my whatsthis help using CHM files instead of HLP files works on Vista but not on XP SP2? Any help really appreciated. Thanks
Paul
I used the following command to initialise my whatsthis help file originally, this worked on all platforms except Vista
SET HELP TO WHATSTHIS.HLP
I changed this to
SET HELP TO WHATSTHIS.CHM
this works fine on Vista but not on XP SP2
For my F1 context sensitive help, I used the some rather complicated code, which I do not profess to understand. This has remained unchanged and appears to work on ALL platforms - I just copied it and it works and has done for some years. I shouldn't need to bother you with that but just thought I would mention it briefly in case it has any relevance. Here is a sample of part of the code in use. Obviously I pass in certain parameters before it is activated
DECLARE INTEGER HtmlHelp IN "HHCtrl.ocx" AS "HtmHelpA" ;
INTEGER nHWND, ;
STRING cHelpFile, ;
INTEGER nCommand, ;
STRING cTopic
*!* Get the active window handle
DECLARE INTEGER GetFocus IN "user32" AS "GetFocus"
wHnd = GetFocus()
IF wHnd = 0
=MESSAGEBOX("Unable to get window handle.")
RETURN
ENDIF
*!* Call the HTML help system
nRetVal = HtmHelpA(@wHnd, @cHelpFile, @nCommand, cTopic)
Can anyone tell me why my whatsthis help using CHM files instead of HLP files works on Vista but not on XP SP2? Any help really appreciated. Thanks
Paul