Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Accessing a DOS Application from Windows

Accessing a DOS Application from Windows

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nde_plume
    wrote on last edited by
    #1

    This is a weird hacky question, so I thought this would be a good forum to ask :-) I have a DOS application running in a dos window under MS Windows (98SE). I need to dig into it to send keystrokes and read the text on the screen. Does anyone have any idea how to do this, or can anyone even offer any pointers as to where I could find out how to do it? Thanks, NDP.

    K T 2 Replies Last reply
    0
    • N nde_plume

      This is a weird hacky question, so I thought this would be a good forum to ask :-) I have a DOS application running in a dos window under MS Windows (98SE). I need to dig into it to send keystrokes and read the text on the screen. Does anyone have any idea how to do this, or can anyone even offer any pointers as to where I could find out how to do it? Thanks, NDP.

      K Offline
      K Offline
      Ken Mazaika
      wrote on last edited by
      #2

      You could probably use mutexes to alert you when something happens, and a file to explain what happened. Ken Maz

      1 Reply Last reply
      0
      • N nde_plume

        This is a weird hacky question, so I thought this would be a good forum to ask :-) I have a DOS application running in a dos window under MS Windows (98SE). I need to dig into it to send keystrokes and read the text on the screen. Does anyone have any idea how to do this, or can anyone even offer any pointers as to where I could find out how to do it? Thanks, NDP.

        T Offline
        T Offline
        Ted Ferenc
        wrote on last edited by
        #3

        I assume you are spwaning the "DOS" prog from a Windows prog, if so have a look at:- In the MSDN HOWTO: Spawn Console Processes with Redirected Standard Handles ID: Q190351


        If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups