Re: run application
- From: Severian <severian@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Mar 2005 08:59:53 GMT
On Thu, 31 Mar 2005 00:27:42 -0800, "one2001boy@xxxxxxxxx"
<one2001boy@xxxxxxxxx> wrote:
>Frank Hickman [MVP] wrote:
>> <snip>
>>
>>>I have double checked. a3.exe is called with system() command. it doesn't
>>>open any script file or pass any command line parameter. Also, a1.exe is
>>>an third party IDE or editor. there is no thread involved for locking.
>>>
>>>right now, a3.exe just hanged up there for waiting till a1.exe to die.
>>>
>>
>>
>> This is certainly an odd problem...your sure that a3.exe is not just opening
>> behind a1.exe's window? The only other thing I can think of is try
>> launching it with the CreateProcess[Ex] API instead of using system().
>
>
>I just tried again. this change doesn't help.
>
>Also, I noticed something very strange:
>
>for a3.exe, I tried messagebox.c and DialogBoxIndirect.c.
>messagebox.c can run and display correctly. for dialogboxindirect.c, I
>have to kill a1.exe (IDE) to get it run. both are standard win32
>application. I list the source code messagebox.c and dialogboxindrect.c
>below.
>
>Here is the source code for messagebox.c
>/* messagebox.c */
>#include <windows.h>
>#define APP_NAME "MessageBox Title"
>
>int main() {
> PCHAR string="This is a message generated from MessageBox().\n";
> MessageBox( NULL, string, APP_NAME, MB_OK | MB_SYSTEMMODAL |
>MB_NOFOCUS);
>}
>
>Here is the source code for dialogboxindirect.c
>/* dialogboxindrect.c */
<snip>
>int main() {
<snip>
A shot in the darK:
Since it's a GUI application, try WinMain() rather than main(). This
will build it as a Windows application rather than a Console app.
There may be some strange interaction between Windows, the console
generated by the system() call, the IDE in a1, and your dialog box
console program.
--
Sev
.
- Follow-Ups:
- Re: run application
- From: one2001boy@xxxxxxxxx
- Re: run application
- References:
- Re: run application
- From: one2001boy@xxxxxxxxx
- Re: run application
- Prev by Date: Re: run application
- Next by Date: Re: run application
- Previous by thread: Re: run application
- Next by thread: Re: run application
- Index(es):
Relevant Pages
|