Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Link to email
Message
From
06/03/1999 09:59:14
 
 
To
06/03/1999 07:59:12
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00194055
Message ID:
00194842
Views:
19
>Ed,
>
>I get a "Cannot find entry point ShellExecute in the DLL" error when trying that. Is this a version thing or just me butchering the attempt? Is there a handy resouce for the uninitiated regarding the Win32 API calls?
>

Instead of Win32API, try using SHELL32

George Tasker wrote a FAQ describing some of the nuances of using API calls in VFP. There are a number of books and resources, especially the MSDN documentation, but most are targeted at C programmers. One exception is Visual Basic Programmer's Guide to the Win32 API by Dan Appleman, which is targeted at VB programmers; it may be a syntactically easier transition from VB to VFP.

>Regards, Renoir
>
>>>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
>>
>>No, ShellExecute is a Win32 API call:
>>
>>
DECLARE INTEGER ShellExecute IN WIN32API ;
>>   INTEGER hWnd, ;
>>   STRING @ lpOperation, ;
>>   STRING @ lpFile, ;
>>   STRING @ lpParameters, ;
>>   STRING @ lpDirectory, ;
>>   INTEGER nShowCmd
>>
>>>
>>> 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'?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform