Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
01446508
Message ID:
01446509
Views:
104
Did you check return value from ShellExecute ()?

>Hi, I had a ShellExecute cmd working under XP to instantiate the default windows email program whcih was outlook express. But in Vista it doesn't seem to be working. Can you advise?
>
>#DEFINE SW_SHOWNORMAL 1
>#DEFINE SW_SHOWMINIMIZED 2
>#DEFINE SW_SHOWMAXIMIZED 3
>
>t1="mailto:someguy@hotmail.com?Subject=" +title+"&Body="+CHRTRAN( contents, [&], [+] )
>
>lcFileName=t1
>DECLARE INTEGER ShellExecute IN shell32 ;
> INTEGER lnhwnd, STRING lcOperation, ;
> STRING lcFile, STRING lcParameters, ;
> STRING lcDirectory, INTEGER lnShowCmd
>lnRes = ShellExecute( 0, "open", lcFileName, "", "", SW_SHOWMAXIMIZED )
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform