且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

GUI和控制台应用程序

更新时间:2022-12-21 14:59:05




当然如果你想写入控制台那么你会想看到

你想要写入它的控制台盒子吗?


或者你只想在从cmd运行时看到控制台? (其中

案例,编译为GUI,从cmd运行)


我想我不理解你想要的东西....你能不能解释更多?


" MumboJumbo"写道:


Surely if you want to write to the console then you''d want to see the
console box as you want to write to it?

or do you only want to see the console when it''s run from cmd? (in which
case, compile as GUI, run from cmd)

I think I''m not understanding what you want.... can you explain more?

"MumboJumbo" wrote:
嗨我有一个非常基本的问题,希望有些人可以帮助我:

你能编写一个(即一个)C#项目cmd line和gui?

我似乎在写一个GUI应用程序,如果thge项目的输出类型,它就不能使用
System.Console.WriteLine写入控制台。
Windows应用程序。

但是,如果我将输出类型设置为Console
Application,我可以写入stdio。当我这样做时,我很遗憾地得到一个控制台盒。以及当我在没有命令行指令的情况下启动UI时的UI。

欢呼,
JIm
Hi I have a really basic question hopefully some can help me with:

Can you write a (i.e. one) C# project that works from the cmd line and gui?

I seems if i write a GUI app it can''t write to console using
System.Console.WriteLine if thge project has its "Output Type" to
"Windows Application".

However I can write to stdio if i set output type to "Console
Application". When I do this I unfortunately get a "console box" as well
as the UI when i start the UI without command line instructions.

Cheers,
JIm






当然如果你想写入控制台那么你想要看到

控制台框,因为你想要写入它?


或者您是否只想在从cmd运行时看到控制台? (其中

案例,编译为GUI,从cmd运行)


我想我不理解你想要的东西....你能不能解释更多?


" MumboJumbo"写道:


Surely if you want to write to the console then you''d want to see the
console box as you want to write to it?

or do you only want to see the console when it''s run from cmd? (in which
case, compile as GUI, run from cmd)

I think I''m not understanding what you want.... can you explain more?

"MumboJumbo" wrote:
嗨我有一个非常基本的问题,希望有些人可以帮助我:

你能编写一个(即一个)C#项目cmd line和gui?

我似乎在写一个GUI应用程序,如果thge项目的输出类型,它就不能使用
System.Console.WriteLine写入控制台。
Windows应用程序。

但是,如果我将输出类型设置为Console
Application,我可以写入stdio。当我这样做时,我很遗憾地得到一个控制台盒。以及当我在没有命令行指令的情况下启动UI时的UI。

欢呼,
JIm
Hi I have a really basic question hopefully some can help me with:

Can you write a (i.e. one) C# project that works from the cmd line and gui?

I seems if i write a GUI app it can''t write to console using
System.Console.WriteLine if thge project has its "Output Type" to
"Windows Application".

However I can write to stdio if i set output type to "Console
Application". When I do this I unfortunately get a "console box" as well
as the UI when i start the UI without command line instructions.

Cheers,
JIm



我想要一个可以执行此操作的应用程序:


cmd.exe ...使用新工作区启动gui

cmd.exe文件。 xml ...用file.xml启动gui


但是当使用某组额外的args时,它将作为控制台运行

app .. .-applytransform junk.xlst file.xml ... etc ...

Jim


Chris Walters写道:
I want an app that will do this:

cmd.exe ... start the gui with a new workspace
cmd.exe file.xml ... start the gui with file.xml

But when a certain group of extra args are used it will run as a console
app ... -applytransform junk.xlst file.xml ... etc ...
Jim

Chris Walters wrote:

当然如果你想写入控制台那么你想要看到
控制台盒,你想要写它吗?

或者你呢?只想在从cmd运行时看到控制台? (其中
情况,编译为GUI,从cmd运行)

我想我不明白你想要什么......你能解释一下吗?

MumboJumbo写道:


Surely if you want to write to the console then you''d want to see the
console box as you want to write to it?

or do you only want to see the console when it''s run from cmd? (in which
case, compile as GUI, run from cmd)

I think I''m not understanding what you want.... can you explain more?

"MumboJumbo" wrote:

您好我有一个非常基本的问题希望有些人可以帮助我:

你能写一个(即一个)C#项目吗?这可以从cmd行和gui工作吗?

我好像写了一个GUI应用程序,如果thge项目有它的话,我就不能使用
System.Console.WriteLine写入控制台。输出类型
Windows应用程序。

但是,如果我将输出类型设置为Console
Application,我可以写入stdio。当我这样做时,我很遗憾地得到一个控制台盒。以及当我在没有命令行指令的情况下启动UI时的UI。

欢呼,
JIm
Hi I have a really basic question hopefully some can help me with:

Can you write a (i.e. one) C# project that works from the cmd line and gui?

I seems if i write a GUI app it can''t write to console using
System.Console.WriteLine if thge project has its "Output Type" to
"Windows Application".

However I can write to stdio if i set output type to "Console
Application". When I do this I unfortunately get a "console box" as well
as the UI when i start the UI without command line instructions.

Cheers,
JIm