dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: Console app and vb6 form

  1. #1
    Join Date
    Aug 2004
    Location
    Crosby Texas
    Posts
    94

    Post Console app and vb6 form

    Hello guys here i am again, I searched a little bit before posting this.
    Im not sure what im asking but maybe someon can understand.

    Ok I have pre existing console application written by someone else.
    It has several txt files to configure settings for the application in directories released with the app.

    All i want to do is have the console application run within a form.
    And be able to send commands to the console app from a form,
    Basicaly i wanting to make a GUI for this application.
    I already know how to do all the rest for the config files,Anyone have and answer for me?

    It is like a dos promt application btw..

    Thank you anyone in advanced......
    Last edited by LABYRNTH; 01-27-2007 at 01:23 AM.

  2. #2
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    These links might get you started:
    Capture the Output of a DOS application
    http://www.freevbcode.com/ShowCode.Asp?ID=3957
    Advanced Shell Class and Dll
    http://www.freevbcode.com/ShowCode.Asp?ID=1282

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  4. #4
    Join Date
    Aug 2004
    Location
    Crosby Texas
    Posts
    94
    Thanks guys,

    Im still now sure what to use here.

    This is exaclty what i want to do,
    ==========================================================
    "To write a graphical user interface, or GUI, around a command line program is probably something every VB programmer at some point have had the need to do. Doing that for a command line program (from here on simply called CmdApp) that takes a bunch of parameters and switches on the command line and then does its job and exit is very easy to do. We would just create a Form with checkboxes, option buttons, and/or textboxes in which the user can enter these command line options and then we simply call the Shell function"
    ==========================================================

    But the one link that said this is capturing the output of the application, im not wanting to do that at all.

    Elaberate a little more please.

  5. #5
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    So you want to create a GUI so that the user can set all the config options, then shell the console app, correct? But you don't want to display the output of the console app in your GUI? You just want it to run in a standard console window?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  6. #6
    Join Date
    Aug 2004
    Location
    Crosby Texas
    Posts
    94
    Quote Originally Posted by Phil Weber
    So you want to create a GUI so that the user can set all the config options, then shell the console app, correct? But you don't want to display the output of the console app in your GUI? You just want it to run in a standard console window?

    I want to create a GUI , that has the console app on the form. Not seperate.
    But i want to send commands to the console app via controls on the form
    I dont think vb has to read output from it at all, the console app displays this already.

    1. Form with the Console on it. and closes with the form when it is closed.
    2. Able to send commands to the console via controls from the form.

    The config files are nothing i can do this part.
    Last edited by LABYRNTH; 01-27-2007 at 04:47 AM.

  7. #7
    Join Date
    Dec 2003
    Posts
    2,750
    You can't run or integrate the console application window directly from the Visual Basic Form. You have to create your own console interface, as Ron and Phil mentioned, and pipe that information to and from the DOS app.

    The only other alternative is to shell to the console app and work with it from within it's own window.
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  8. #8
    Join Date
    Aug 2004
    Location
    Crosby Texas
    Posts
    94
    I got it to work, Thanks.

Similar Threads

  1. VB6 Controlling Another APP
    By dquick in forum VB Classic
    Replies: 2
    Last Post: 07-23-2006, 10:43 PM
  2. VB6 app to call a VB.Net app
    By bemcdonald in forum .NET
    Replies: 2
    Last Post: 05-04-2005, 03:44 PM
  3. Reading stdout from VB6
    By tiamatloc in forum VB Classic
    Replies: 6
    Last Post: 03-15-2005, 03:45 PM
  4. Replies: 1
    Last Post: 03-16-2001, 03:25 PM
  5. Place a MS Access report on a VB6 form
    By Keith in forum VB Classic
    Replies: 7
    Last Post: 02-05-2001, 03:32 AM

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