Re: Problem with execution of an extern program from an asp.net application.

From: Willy Denoyette [MVP] (willy.denoyette@pandora.be)
Date: 08/26/02


From: "Willy Denoyette [MVP]" <willy.denoyette@pandora.be>
Date: Mon, 26 Aug 2002 16:19:56 +0200


If it's visible in the taskmanager, it means it is started.
What did you expect from your program?
Is it displaying a UI?

Willy.

"Per Andersen" <pna@novenco.dk> wrote in message news:#5EeU9PTCHA.1400@tkmsftngp12...
> My problem is as follows :
>
> The DllImport function is used to implement an extern function defined in
> MyDll.dll.
>
> [DllImport("MyDll.dll")]
> [return:MarshalAs(UnmangedType.LPStr)]
> public static extern string strProgramActivation();
>
> In MyDll.dll is declared as shown bellow.
>
> char* __stdcall strProgramActivation()
> {
> ...
>
> int nRes = _spawnl( _P_WAIT, MyProgram.exe, args[1], NULL);
>
> ...
>
> return ...;
> }
>
> When _spawnl is activated MyProgram.exe is present in the taskmanager.
>
> However MyProgram.exe doesn't start.
>
> It seems that asp.net application dosn't allow the activated MyProgram.exe
> program to execute !.
>
>
> Thanks, Per
>
>
>