Results 1 to 2 of 2

Thread: Output Messages to the Command Prompt [VB6]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Posts
    308

    Question Output Messages to the Command Prompt [VB6]

    Given that my application is a command line application (meant to run from the command prompt) I wanted to find a way to output messages to the user (in the command prompt).
    For example, I would like to display the progress of the application. So as the program runs I could do something like [cout << "Stage 1 Complete";] (but that is C++, no clue how to do it in VB6).
    Hope I am making sense, anyone have an idea? Thanks,

  2. #2
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141

    Re: Output Messages to the Command Prompt [VB6]

    You cannot write out directly to a command prompt like you can in C++. You can however access a command prompt with Win APIs. So, if you run your VB app from a command prompt, it will open a new one to run. Check this out:
    http://internettrash.com/users/fdb/cons.htm
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

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