Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shell32
Message
From
26/01/2011 17:39:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Shell32
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01497496
Message ID:
01497496
Views:
162
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.
Next
Reply
Map
View

Click here to load this message in the networking platform