>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'?