Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Link to email
Message
 
 
To
06/03/1999 05:07:41
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00194055
Message ID:
00194887
Views:
23
Renoir,

If you are using VFP6 you can use the _ShellExecute class from the FFC. If you are using 3 or 5 you have to use the API call directly. There is an object wrapper for ShellExecute on my website in the spyin.zip file, it's under Utilities, SpyIn. There is also a more extensive article on ShellExecute under Q&A, General, Article qGEN010. As Ed said ShellExecute() is in shell32.dll. Another word of warning the function names are case sensitive in the VFP DECLARE for them. ShellExecute will be found. shellexecute or SHELLEXECUTE will not be found. When you call the function in the rest of your VFP code you can use any case that you want. Article qGEN011 talks about this in more detail.

>David, I tried the following and, likely due to my misunderstanding of API calls and associated programs, I get an error because it can't find the ShellExecute program. Is this in a fox tools library? Regards, Renoir
>
> declare long GetDesktopWindow in"win32api"
> local hDCScreen
> hDCScreen = GetDesktopWindow()
> ? ShellExecute( hDCScreen, "open", "mailto:DavidFrankenbach@worldnet.att.net", "", "c:\", 1 )
>
>
>>declare long GetDesktopWindow in"win32api"
>>
>>local hDCScreen
>>
>>hDCScreen = GetDesktopWindow()
>>
>>>I got an error with 'hDCScreen'?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform