Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web browsing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00358389
Message ID:
00359058
Vues:
11
>Deamon,
>
>You could also use this leaner technique, which will display the file in your default browser:
>
>DECLARE INTEGER ShellExecute IN "Shell32.dll" INTEGER, STRING, STRING, STRING, STRING, INTEGER
>
>=ShellExecute(0,"Open","file:///c:/inetpub/wwwroot/wconnect/default.htm","","",0)
>

(Psst. It goes to the registry, finds out what server is associated with it in the registry for the requested operation, fires up an instance and hands off the doc reference. It's exactly the same expense to instance InternetExplorer.Application and set properties and methods as ShellExecute(), because the only difference is that you've explicitly decided which server to fire and what doc and operations to hand off rather than doing it implicitly through the registry association. With the added advantage in the use of the WebBrowser control of explicit programmatic control and encapsulation in a form, and the ability to participate in the event loop.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform