简体   繁体   English

DirectX11应用程序和控制台同时进行

[英]DirectX11 Application and Console simultaneous

I just try to write a little game with DirectX. 我只是尝试用DirectX编写一个小游戏。 Therefore I need a console for writing Debug Informations. 因此我需要一个用于编写调试信息的控制台。 I googled and found the function AllocConsole() . 我用Google搜索并找到了AllocConsole()函数。 The function works fine, but after the console openes it closes itself and the DirectX Application. 该函数工作正常,但在控制台打开后,它关闭自身和DirectX应用程序。 Does somebody know how I can run a DirectX Application and a Console simultaneous? 有人知道如何同时运行DirectX应用程序和控制台吗?

分配你自己的控制台是不必要的,大多数情况下它只需要你需要多个控制台,以下是你如何启用内置控制台: https//stackoverflow.com/a/1152873/351861

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM