Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 To: David Younger
  Where is David Younger?
 Redfern
 Australia
 David Younger
Subject: RE: Problem with ShellExecute
Thread ID: 190623 Message ID: 190642 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Win32API programming
Date: Friday, August 22, 2008 4:30:06 AM         
   



> We have a number of clients with our VFP compile executable and we give them the ability to launch documents whos path is stored in the database.
>
> We use the following code:
>
>
> FUNCTION Launch
> LPARAMETERS cURL
>
> DECLARE INTEGER ShellExecute IN shell32.dll ;
> INTEGER hndWin, STRING cAction, STRING cFileName, ;
> STRING cParams, STRING cDir, INTEGER nShowWin
>
> _screen.WindowState=1
>
> ShellExecute(0,"open",cURL,"","",1)
>
> This works 99% of the time. However, every now again and from different companies using our program, we get the following error:
>
> Error message: Variable ' 103' is not found.
>
> This occurs on the Shellexecute line. I have no idea what 103 is and it is nothing we are passing.
>
> Any ideas?
>
> Cheers
> David Younger

What is cURL value when the error occurs?

ENTIRE THREAD

Problem with ShellExecute Posted by David Younger @ 8/22/2008 2:22:31 AM
RE: Problem with ShellExecute Posted by Yuri Rubinov @ 8/22/2008 4:30:06 AM
RE: Problem with ShellExecute Posted by Jun Tangunan @ 8/22/2008 4:34:48 AM
RE: Problem with ShellExecute Posted by Tamar Granor @ 8/22/2008 10:29:59 PM