Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shell32
Message
 
 
To
26/01/2011 17:39:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01497496
Message ID:
01497498
Views:
72
>I have been using ShellExecute without difficulty in my development environment (using Windows Vista) which I declare in a function like this:
>
>
>DECLARE INTEGER ShellExecute IN shell32.dll INTEGER handle, STRING @ oper, ;
> STRING @ ifile, STRING @ iparam, STRING @ ipath, INTEGER showcmd
>
>
>The in the form I invoke the ShellExecute with variables like so:
>
> =ShellExecute(0,"open",lcFile,"",lcPath,1)
>
>I prepopulate the variables lcFile and lcPath appropriately. This works fine in my development machine. But when I installed the program on my portable computer using Windows 7 nothing happens. No error, no message. Nothing. Why doesn't this work? What am I missing?
>
>I checked the portable computer in the Windows subdirectory and found Shell32.dll as I expected. I am stumped. I'd appreciate help.

What happens if you double click on this file in Windows Explorer?

Have you checked what does ShellExecute return (it may return an error code)? Check Open any document FAQ #8134
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform