>I'm writing a VFP7 application (called MyApp.exe) thas uses ShellExecute to run external apps. All works great if the external .EXE is, for example, winword or lotusnotes or any other executable file built with VB or VC++.
>But, when the external file is an EXE built with VFP7, it does not start correctly. The ShellExecute returns a value greater than 31, the application MyApp.exe loses the focus, but the EXE file executed is not displayed on the desktop. The application is present in the task manager as a process, I can terminate it, but I'm not able to get it on the desktop using the ALT+TAB keysequence.
>
>Can anyone help me?
>Thanks! Nando
>
>N.B. sorry for my bad English.
Fernando,
If a VFP exe is runnable on its own (that's works as expected when dblclicked in explorer or shortcut etc) it runs very well with ShellExecute.
Cetin