Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting the missing html help control
Message
From
16/05/2002 12:17:04
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00656993
Message ID:
00657558
Views:
31
My users change workstations freqently. Sometimes, visitors just connect
notebook computer for a 2 minutes to use my vfp application.
Those computers will never be connected again.

It is not practical to run install and uninstall program in every such case.
So I have all files (including vfp runtime) in network server so no installation is required. I install required OLE objects dynamically in form load event.

This works OK, except for HTML help.

I currenty use shellexecute() API call to display .chm file without installing help.

Unfortunately, I need to provide context sensitive help. It seems that it is not possible to pass a topic name to chm help using command-line automation.
For this reason, I need to dedect and install html help control dynamically if user presses F1 key.

How to check for HTML help runtime installation from VFP ?

>Wouldn't be simplier to include html help files into your application setup?
>
>>If my user presses F1 key, I need to dedect for html help control:
>>
>>1. are the required files present in hard disk
>>2. is the control registered in registry.
>>
>>I think that the best way is to use the code:
>>
>>
>>on error lError = .t.
>>ob = createobject( ??? )
>>on error
>>if type('ob')#'O'
>>  .. register it
>>  endif
>>
>>
>>
>>Which class name need to be passed to createobject() for this check
>>or is there a better way to dedect the installation on html help control ?
Andrus
Previous
Reply
Map
View

Click here to load this message in the networking platform