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. Output redirect

Output redirect

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
2 Posts 2 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
    no_reg_name
    wrote on last edited by
    #1

    I inherited some source code that was originaly written for command line apps. :( Some functions have signatures as follows void doSomething(whatever wh, FILE *fp); so if you pass stdin or stderr it will output the result to the console. Since I'm writing an MFC app that needs to use these functions, is there any way to redirect the output to a MessageBox, Static text or any other non console output?

    R 1 Reply Last reply
    0
    • N no_reg_name

      I inherited some source code that was originaly written for command line apps. :( Some functions have signatures as follows void doSomething(whatever wh, FILE *fp); so if you pass stdin or stderr it will output the result to the console. Since I'm writing an MFC app that needs to use these functions, is there any way to redirect the output to a MessageBox, Static text or any other non console output?

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      http://www.codeproject.com/info/search.asp?target=redirect&st=tt&qm=ext[^] One of these links probably gives what you need Roger Allen - Sonork 100.10016 Strong Sad: I am sad I am flying Who is your favorite Strong?

      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