Windows程序开发时,有时会需要隐藏控制台窗口(黑框),可采用下面这行代码:
#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")