Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shellexecute problem on WinXP
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Shellexecute problem on WinXP
Miscellaneous
Thread ID:
00733769
Message ID:
00733769
Views:
52
The following code pops up an Outlook "new msg" window. This works fine on Win2k PCs. But no window is displayed on WinXP machines:
DECLARE INTEGER ShellExecute ;
   IN SHELL32.DLL ;
   INTEGER nWinHandle,;
   STRING cOperation,;
   STRING cFileName,;
   STRING cParameters,;
   STRING cDirectory,;
   INTEGER nShowWindow
	
lcEmailAddress = ALLTRIM(users.sc_email)
lcSubject      = "Timesheet issue"
lcMessageBody  = "(...comments, question, corrections here...)"

ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + ;
             "&body=" + lcMessageBody, "", "", 9) 
In the SHELLEXECUTE command above, i have tried 0,1,3,4,5,8,and 9 as the last parameter, hoping to control the window. Did not help.

Any ideas?
Next
Reply
Map
View

Click here to load this message in the networking platform