Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a website
Message
From
12/12/2003 10:58:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/12/2003 10:49:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00858595
Message ID:
00858606
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform