Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
Christian Graus29-Dec-01 8:55
protectorChristian Graus29-Dec-01 8:55 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 2:09
AnonymousBabe@usa.net29-Dec-01 2:09 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
PJ Arends29-Dec-01 12:38
professionalPJ Arends29-Dec-01 12:38 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 12:57
AnonymousBabe@usa.net29-Dec-01 12:57 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
Tim Smith29-Dec-01 13:52
Tim Smith29-Dec-01 13:52 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 14:58
AnonymousBabe@usa.net29-Dec-01 14:58 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 15:11
AnonymousBabe@usa.net29-Dec-01 15:11 
GeneralASP and spawning notepad Pin
Nish Nishant28-Dec-01 20:34
sitebuilderNish Nishant28-Dec-01 20:34 
Hello guys

I know that this is the wrong forum, but I didnt find an ASP forum Frown | :-(

See the ASP code below
Set s = server.CreateObject("WScript.Shell") 
s.Run "d:\jjj.bat"

Works fine for me.
But when I replace jjj.bat with c:\winnt\notpade.exe what happens is that notepad gets spawned [I can see it in the task manager] but it never gets shown

so I replaced the line with this line :-
s.Run "c:\winnt\notepad.exe",3,false

3 stands for maximized and false means return immediately

Now what happens is the same.
Notepad gets spawned but the window doesnot pop up visibly on the server running IIS 5.0 and what's even worse is that despite giving false s.Run never returns with the result that we get a hanging ASP !!!

What do I do to resolve this?

Of course I am not at all interested in notepad.
But for some reason I need to use ASP to start a GUI program on the IIS machine.

I tried the above code on a win98 machine running PWS and successfully had notepad upon the screen

But win2K and IIS is not allowing me to do that.

So the question is this -

How do we spawn a GUI program using ASP and return, allowing the GUIprogram to finish on its own.

Regards and apologies for using the wrong forum,
Nish [ASP-program-spawning newbie]



Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
GeneralRe: ASP and spawning notepad Pin
Konstantin Vasserman28-Dec-01 22:05
Konstantin Vasserman28-Dec-01 22:05 
GeneralRe: ASP and spawning notepad Pin
Nish Nishant28-Dec-01 22:24
sitebuilderNish Nishant28-Dec-01 22:24 
GeneralResizing of Animation control Pin
v_krishnan28-Dec-01 19:10
v_krishnan28-Dec-01 19:10 
GeneralError Checking Pin
Stephen Caldwell28-Dec-01 18:06
Stephen Caldwell28-Dec-01 18:06 
QuestionHow to make a Picture Transparent Using Memory DC only Pin
clemence28-Dec-01 18:02
clemence28-Dec-01 18:02 
AnswerRe: How to make a Picture Transparent Using Memory DC only Pin
Christian Graus29-Dec-01 0:04
protectorChristian Graus29-Dec-01 0:04 
GeneralTransparency Pin
clemence28-Dec-01 18:00
clemence28-Dec-01 18:00 
GeneralRe: Transparency Pin
Christian Graus29-Dec-01 0:02
protectorChristian Graus29-Dec-01 0:02 
GeneralRe: Transparency Pin
clemence29-Dec-01 17:44
clemence29-Dec-01 17:44 
GeneralRe: Transparency Pin
Christian Graus29-Dec-01 23:05
protectorChristian Graus29-Dec-01 23:05 
GeneralUsing auto_ptr :: C++ Pin
valikac28-Dec-01 16:06
valikac28-Dec-01 16:06 
GeneralRe: Using auto_ptr :: C++ Pin
James R. Twine28-Dec-01 16:52
James R. Twine28-Dec-01 16:52 
GeneralRe: Using auto_ptr :: C++ Pin
valikac28-Dec-01 18:09
valikac28-Dec-01 18:09 
Questionwhen OnDraw will be EXECUTED? Pin
AnonymousBabe@usa.net28-Dec-01 14:29
AnonymousBabe@usa.net28-Dec-01 14:29 
GeneralDouble buffering and GDI+ Pin
Anders Molin28-Dec-01 11:52
professionalAnders Molin28-Dec-01 11:52 
GeneralRe: Double buffering and GDI+ Pin
Christian Graus28-Dec-01 15:04
protectorChristian Graus28-Dec-01 15:04 
GeneralRe: Double buffering and GDI+ Pin
Anders Molin29-Dec-01 3:57
professionalAnders Molin29-Dec-01 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.