Command Line and console output


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Command Line and console output

Hybrid View

  1. #1
    Scott Guest

    Command Line and console output


    I would like to run a program providing certain parameters from the command
    line and display a status within the same window the command line was entered.
    I have used the AllocConsole, GetstdHandle, and WriteConsole functions from
    the API, but this creates a separate console and closes when finished, but
    I would like to see the output in the same console.

  2. #2
    Karl E. Peterson Guest

    Re: Command Line and console output

    Hi Scott --

    > I would like to run a program providing certain parameters from the command
    > line and display a status within the same window the command line was entered.
    > I have used the AllocConsole, GetstdHandle, and WriteConsole functions from
    > the API, but this creates a separate console and closes when finished, but
    > I would like to see the output in the same console.


    See LJ's site <http://www.mvps.org/st-software/> for his console example from VBPJ.
    (I think Matt Curland's new book may also includes a tool that's useful for this?)

    Later... Karl
    --
    http://www.mvps.org/vb



  3. #3
    Matthew Curland Guest

    Re: Command Line and console output

    The book doesn't do anything along these lines, but I put together an add-in
    for the website that automates turning your Standard Exe into a console app.
    You still have to write the code, but you don't have to do anything extra at
    compile time to make it a console app. Follow links from
    http://www.PowerVB.com. -Matt

    > (I think Matt Curland's new book may also includes a tool that's useful

    for this?)




  4. #4
    Karl E. Peterson Guest

    Re: Command Line and console output

    Hi Matt --

    > The book doesn't do anything along these lines, but I put together an add-in
    > for the website that automates turning your Standard Exe into a console app.


    That's what I recall, yeah. Toggles that bit in the PE header, right?

    Thanks... Karl


  5. #5
    Karl E. Peterson Guest

    Re: Command Line and console output

    Hi Scott --

    > I would like to run a program providing certain parameters from the command
    > line and display a status within the same window the command line was entered.
    > I have used the AllocConsole, GetstdHandle, and WriteConsole functions from
    > the API, but this creates a separate console and closes when finished, but
    > I would like to see the output in the same console.


    See LJ's site <http://www.mvps.org/st-software/> for his console example from VBPJ.
    (I think Matt Curland's new book may also includes a tool that's useful for this?)

    Later... Karl
    --
    http://www.mvps.org/vb



  6. #6
    Matthew Curland Guest

    Re: Command Line and console output

    The book doesn't do anything along these lines, but I put together an add-in
    for the website that automates turning your Standard Exe into a console app.
    You still have to write the code, but you don't have to do anything extra at
    compile time to make it a console app. Follow links from
    http://www.PowerVB.com. -Matt

    > (I think Matt Curland's new book may also includes a tool that's useful

    for this?)




  7. #7
    Karl E. Peterson Guest

    Re: Command Line and console output

    Hi Matt --

    > The book doesn't do anything along these lines, but I put together an add-in
    > for the website that automates turning your Standard Exe into a console app.


    That's what I recall, yeah. Toggles that bit in the PE header, right?

    Thanks... Karl


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center