Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with oShell=CREATEOBJECT('WScript.Shell')
Message
De
24/06/2003 07:32:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00803191
Message ID:
00803208
Vues:
8
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform