Dalkie
January 19th, 2006, 04:33 AM
Hi,
I'm trying to develop an application in both PPC2003 and PPC2003SE. In this application I need to call an external program so I use ShellExecuteEx and WaitForSingleObject in order to wait for the end of the external execution. This code doesn't have any problem running in PPC2003.
My problem comes running it in PPC2003SE, the process is created in background (I can see it's runing in the Process viewer) and I'm not able to bring it foreground. I tried with CreateProcess instead of ShellExecuteEx, FindWindow and EnumWindows (to obtain the Hwnd and set it to the foreground) and the most I achieved was an inmortal window that doesn't answer to the user's actions.
With the same code I can call another programs without any harm, but I found impossible to call that one. So, could anyone give me a hint? Thanks.
EDIT: I forgot to say that I'm developing in eVC++ 4.0
I'm trying to develop an application in both PPC2003 and PPC2003SE. In this application I need to call an external program so I use ShellExecuteEx and WaitForSingleObject in order to wait for the end of the external execution. This code doesn't have any problem running in PPC2003.
My problem comes running it in PPC2003SE, the process is created in background (I can see it's runing in the Process viewer) and I'm not able to bring it foreground. I tried with CreateProcess instead of ShellExecuteEx, FindWindow and EnumWindows (to obtain the Hwnd and set it to the foreground) and the most I achieved was an inmortal window that doesn't answer to the user's actions.
With the same code I can call another programs without any harm, but I found impossible to call that one. So, could anyone give me a hint? Thanks.
EDIT: I forgot to say that I'm developing in eVC++ 4.0