CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 1999
    Location
    Calgary, AB, Canada
    Posts
    3

    Output to command prompt window?

    I'm stumped! How do I output text to the command prompt where my EXE was started?

    I am writing a utility that will be run from the command prompt. I want the program to run and output some text to the text window, then end.

    Thanks!


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Output to command prompt window?

    MSDN article Q171654 has lots of details and a sample program in VB for manipulating console windows.


  3. #3
    Join Date
    Jan 1999
    Location
    Calgary, AB, Canada
    Posts
    3

    Re: Output to command prompt window?

    Thanks for the pointer. From that, I also found this:
    "You can't create a true console app with VB. You can use a Sub Main in a standard BAS Module to start you application. So you can create a VB application without any user interface. You can have your VB app control a console window so it looks like a console app. This is in the following article: Q171654"

    From looking at the Q article, it appears that you simply cannot do what I wanted with Visual Basic!

    Five or ten years ago, making a "console app" was simple in almost any programming language and making graphical windows programs was difficult, if not impossible. Now it is the opposite!

    Oh well...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured