简体   繁体   English

MFC:修复GUI上的控制台

[英]MFC: Fix a console on a GUI

I am thinking to replace the edit box in my GUI with console itself. 我正在考虑用控制台本身替换GUI中的编辑框。 How can I integrate console in the GUI application, which currently lingers as independent window. 如何将控制台集成到GUI应用程序中,该应用程序目前仍作为独立窗口存在。 And I need to develop in native c++ (MFC). 而且我需要使用本机c ++(MFC)开发。 No to CLR (dot net etc). 不对CLR(点网等)。

PS: actually I need to develop a GUI application that starts a lengthy background process and give its concurrent display on GUI's edit box. PS:实际上,我需要开发一个GUI应用程序,以启动一个冗长的后台进程,并在GUI的编辑框中同时显示它。 Since my previous question largely remained unanswered, I thought of this plan 由于我之前的问题在很大程度上仍未得到回答,因此我想到了这个计划

MFC: Display output of a process asynchronously(concurrently) while process is in execution in a win32 text area (mfc application) MFC:在Win32文本区域(MFC应用程序)中执行过程时,异步(同时)显示过程的输出

I'm not sure if I totally understand the question. 我不确定我是否完全理解这个问题。 Here is something that might help you: If you want a GUI app starting with a console window, then add following info to your linking command line (ansi): 这可能对您有帮助:如果您想要从控制台窗口开始的GUI应用程序,则将以下信息添加到链接命令行(ansi):

/entry:"WinMainCRTStartup" /subsystem:console / entry:“ WinMainCRTStartup” / subsystem:控制台

or (unicode) 或(unicode)

/entry:"wWinMainCRTStartup" /subsystem:console / entry:“ wWinMainCRTStartup” / subsystem:控制台

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

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