English 中文(简体)
见以下部分:
原标题:See std::cout of .exe

我有一份顶点文件,我用窗户汇编。 但是,当我从指挥线管理时,我看不出我的方案产出:out或 st:cer。 即使在指挥线迅速返回之后,该方案也继续运作(在我发布通quit之前,它实施了一项GUI方案,并放弃。 我如何看待我的方案的产出?

Im利用碎块制作一个视觉演播室项目,然后由我用ms子汇编。

最佳回答

最简单的办法是重建该方案,作为青少年应用。 <代码>link.exe 需有<条码>/SUBSYSTEM:CONSOLE,而不是/SUBSYSTEM:WINDOWS;大概有直截了当的方式来说明这种错误。

这一变化完全影响到你的全球调查,但如果程序已经与它有关,则它会造成Windows分配一个ole子。 此外,指挥线炮弹通常在继续之前等待假释申请。

另一种做法是:http://msdn.microsoft.com/en-us/library/windows/desktop/ms681944.aspx”rel=“nofollow noreferer”>AllocConsole<>,明确设立新的专栏,或

根据谷歌搜索,你可以通过在来源法中添加以下内容,将该方案作为青少年应用:

#pragma comment(linker, "/SUBSYSTEM:CONSOLE")

这可能是最容易的解决办法。 您可将其列入<代码>#if。 如果你只想让ole子 build落。

另见CMake: • 如何使用不同的ADD_EXECUTABLE进行脱贝建设?

问题回答

完成产出的方法之一是:

program.exe > output.txt 

然后监测该产出。 或者使用管道观看:

program.exe | find /v ""

还监测你可以使用的错误产出

program.exe > output.txt 2>&1

program.exe 2>&1 | find /v ""

I figured it out based on the documentation by Microsoft that leaves a lot to the imagination and from the much more practical examples here and here.

这有助于我看到我的(和其他民族)窗口应用的“隐蔽”剪辑和慢慢信息。 它很有兴趣了解一些方案留下了哪些信息,但通常只看到一些信息。

Windows don t支持双重模式。 这就意味着,在你执政时,你无法从你手中获得产出。





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签