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!
|