Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute()
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00092846
Message ID:
00092896
Views:
33
>>Right now? Just Cobb County or all NW GA?
>>
>>I don't have direct access to NT, so I can't comment. The documentation, however, doesn't mention anything about differences in this regard. I'd be interested to learn about them, though.
>
>All of the metro ATL area including Cobb. We are under a Freaknik watch as well! <g>
>
>This is part of the thread. The first call works fine on 95 and not on NT. On NT the app started but remained hidden. Unless you passed in a URL, then it launched the default browser.
>
>
>...Works on 95:
>
>declare integer ShellExecute in SHELL32.dll integer,string,string,string,string, integer
>x = ShellExecute(0,'','logo.bmp','','c:\temp',1)
>
>...He played with it and got this to work properly on NT:
>
>declare ShellExecute in shell32.dll string, string, string, string, string,
>string
>x = ShellExecute('','open','c:\temp\logo.bmp','','','SW_SHOWNORMAL')
>
>I didn't try the last block on 95. The other one works for me.

I don't think that second declare will work. Both NT (as far as I know) and 95 use the first one, but the strings should be passed by reference.

I see you've discovered one of the beauties of ShellExecute(), you can smply pass the name of the file you want opened and the associated application will open and run it. It would be interesting on the NT machine to see if FindExecutable() (also in Shell32) is returning the same application.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform