Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web browsing
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00358389
Message ID:
00359058
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform