Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console工程下如何不显示控制台黑窗口只显示Windows窗口 - 远行's Blog #16

Open
xpc-yx opened this issue Feb 25, 2018 · 0 comments

Comments

@xpc-yx
Copy link
Owner

xpc-yx commented Feb 25, 2018

http://xiaopengcheng.top/2012/11/06/Console%E5%B7%A5%E7%A8%8B%E4%B8%8B%E5%A6%82%E4%BD%95%E4%B8%8D%E6%98%BE%E7%A4%BA%E6%8E%A7%E5%88%B6%E5%8F%B0%E9%BB%91%E7%AA%97%E5%8F%A3%E5%8F%AA%E6%98%BE%E7%A4%BAWindows%E7%AA%97%E5%8F%A3/

本文是以OpenGL的代码为例子的。计算机图形学OpenGL版上面的例子都是控制台模式的,如果不进行设置,运行的时候会先出现黑窗口再出现Windows窗口。 其实要去除控制台窗口非常简单,只需要修改工程设置,把子系统改成Windows,程序的入口点改成mainCRTStartup。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant