Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a website
Message
De
12/12/2003 10:58:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/12/2003 10:49:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00858595
Message ID:
00858606
Vues:
16
>Great! Thanks so much! Do I need to include the declaration? It seems to work without the declaration of those variables. What are they used for anyway?

You'd include winAPI declaration :

declare long ShellExecute in "shell32.dll" ;
long hwnd, string lpszOp, ;
string lpszFile, string lpszParams, ;
string lpszDir, long nShowCmd

You need to declare once if you're not keen on resource it uses. ie: In your main.prg declare once and would be available anytime.


They're windowhandle,operation,file,parameters,workingdirectory and showwindow type. MSDN help have details of each parameter. Practically what you get is same when you dblclick a file in explorer. ie:

ShellExecute(0,'Open','c:\mp3\myFavoriteSong.mp3',0,0,0)

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
Répondre
Fil
Voir

Click here to load this message in the networking platform