Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with oShell=CREATEOBJECT('WScript.Shell')
Message
From
24/06/2003 07:32:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00803191
Message ID:
00803208
Views:
7
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>I have been running this code in my apps for years to access web sites
>
>oShell=CREATEOBJECT('WScript.Shell')
>oShell.Run('http://www.virgin-atlantic.com/booknow/SchedulesFlifo.asp')
>
>Now when I try to run it I get the message
>
>OLE error 0x80040111
>classfactory cannot supply requested class
>
>Running VFP6 with SP5
> VFP7 with SP1
>
>Any ideas
>
>Colin

Colin,
Scripting might be disabled. You might try ShellExecute instead :
declare long ShellExecute in "shell32.dll" ;
	long hwnd, string lpszOp, ;
	string lpszFile, string lpszParams, ;
    string lpszDir, long nShowCmd

ShellExecute(0,'Open','http://www.microsoft.com',0,0,1)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform