Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass a parameter?
Message
 
 
To
03/04/2007 16:25:37
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01211676
Message ID:
01212324
Views:
13
>>But I would use ShellExecute just because I don't want console window to appear:
>>
>>   LOCAL result
>>   DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
>>                                               STRING cOperation,;
>>                                               STRING cFileName,;
>>                                               STRING cParameters,;
>>                                               STRING cDirectory,;
>>                                               INTEGER nShowWindow
>>    result = ShellExecute(0, 'Open', FULLPATH([GestRapp.exe]) , m.Language, '', 1)
>>    DO CASE
>>       CASE result ==  0	     && The system is out of memory or resources.
>>
>>       CASE result ==  2	     && Bad Association (for example, invalid URL)
>>
>>       CASE result == 29	     && Failure to load application
>>
>>       CASE result == 30	     && Application is busy
>>
>>       CASE result == 31         && No application association
>>
>>   ENDCASE
>>
>
>Thanks Borislav. You read my mind because my next thread should have been. How do I do it without showing that black box ;-)
>
>But there's an apparent catch. If I take the SHELL32 that comes with Windows XP no problem. If I take the SHELL32 that comes with Vista I receive error messages. Can you tell me why?

What error message are you getting?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform