Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute() errors
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00960666
Message ID:
00960667
Views:
9
>I am trying to implement the ShellExecute function to open a various documents on a system (MS Word docs, pdf, Excel sheets, etc). All file types work as expected with the exception of MS Word docs - they open and then produce a VFP Error #12 Variable '18' is not found. There is no code in the method that contains anything related to an '18'.
>
>Anyone seen this before? Thanks in advance.
>DECLARE INTEGER ShellExecute IN shell32.DLL ;
>  INTEGER hndWin, ;
>  STRING cAction, ;
>  STRING cFileName, ;
>  STRING cParams, ;
>  STRING cDir, ;
>  INTEGER nShowWin
>
>ShellExecute(0,"open","c:\test.doc","","",1)
Which line of code gives this error?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform