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#
  4. Problems with Console Output from Windows-App

Problems with Console Output from Windows-App

Scheduled Pinned Locked Moved C#
helpquestion
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.
  • J Offline
    J Offline
    J Holzer
    wrote on last edited by
    #1

    Hi! I have a windows-app, that should perform normally when started with double-click. If it is being started from an console/Dos-Box with more than 0 arguments it shall do a specific operation. My problem is, that i cannot write console-output with Systen.Console.WriteLine("..."), because the application is set to be a windowsapplication. If i changed this to console-application i get an DOS-Box everytime i start the app with double-click (which looks stupid). How can i make a windows application write it´s output to my DOS-Box or make the console-app not to open an DOS-box? Help would be great! Thanx a lot! Greetings J.

    L 1 Reply Last reply
    0
    • J J Holzer

      Hi! I have a windows-app, that should perform normally when started with double-click. If it is being started from an console/Dos-Box with more than 0 arguments it shall do a specific operation. My problem is, that i cannot write console-output with Systen.Console.WriteLine("..."), because the application is set to be a windowsapplication. If i changed this to console-application i get an DOS-Box everytime i start the app with double-click (which looks stupid). How can i make a windows application write it´s output to my DOS-Box or make the console-app not to open an DOS-box? Help would be great! Thanx a lot! Greetings J.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      hi.. maybe this can help you http://www.codeproject.com/csharp/winconsole.asp?df=100&forumid=16021[^] greets m@u

      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