SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Writing to the console

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Writing to the console
Author Message
Jason Kilgrow



Joined: 23 Feb 2004
Posts: 7

Post Writing to the console Reply with quote

Well...I found a lot of good examples for writing to
a NEW console but I'm still not able to write anything
to the console that called the program.

Any hints or other info are greatly appreciated!

Thanks!

Tue Feb 24, 2004 2:46 pm View user's profile Send private message
Jason Kilgrow



Joined: 23 Feb 2004
Posts: 7

Post Re: Writing to the console Reply with quote

: Well...I found a lot of good examples for writing to
: a NEW console but I'm still not able to write anything
: to the console that called the program.

: Any hints or other info are greatly appreciated!

: Thanks!

It IS possible to write to A console from a GUI-less
VB application. However, due to the nature of VB,
you have to open a NEW console (that would then be
attached to the VB application) in order to do it.
Unfortunately, for my purposes, this won't work.

However, if anyone comes up with a way to start a
GUI-less VB app from the command line AND get it
to write output to that same console, PLEASE let
me know how you did it.

Thanks!

Tue Feb 24, 2004 5:25 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Writing to the console Reply with quote

It cannot do that because it is not a console application, it runs in its own process/memory space. You can clearly see it in the Task Manager.
When you start a console application from an open DOS box you don't see it as a separate process. When you start your VB application no matter what you do it always appears as a separate process because it runs in a different Windows subsystem.

I don't think you can write to "A console from a GUI-less VB application" or any other non-console application. You can only write to THE console associated with the same process (e.g. your VB application).

: It IS possible to write to A console from a GUI-less
: VB application. However, due to the nature of VB,
: you have to open a NEW console (that would then be
: attached to the VB application) in order to do it.
: Unfortunately, for my purposes, this won't work.

: However, if anyone comes up with a way to start a
: GUI-less VB app from the command line AND get it
: to write output to that same console, PLEASE let
: me know how you did it.

: Thanks!

Tue Feb 24, 2004 6:42 pm View user's profile Send private message
Jason Kilgrow



Joined: 23 Feb 2004
Posts: 7

Post Re: Writing to the console Reply with quote

: It cannot do that because it is not a console application, it runs in its own
: process/memory space. You can clearly see it in the Task Manager.
: When you start a console application from an open DOS box you don't see it as
: a separate process. When you start your VB application no matter what you
: do it always appears as a separate process because it runs in a different
: Windows subsystem.

: I don't think you can write to "A console from a GUI-less VB
: application" or any other non-console application. You can only write
: to THE console associated with the same process (e.g. your VB
: application).

Yep. That's pretty much what I found out. And
that's how I discovered it was by looking at the
running tasks. *sigh* I might be moving to
another language.

Does anyone ever get tired of the training wheels?

Thanks for the info!

Wed Feb 25, 2004 12:52 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.