DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 7 of 7

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


Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links