vc console程序不显示dos窗口方法

5568阅读 0评论2012-04-10 sxcong
分类:C/C++

#pragma   comment(linker, "/subsystem:\"windows\"   /entry:\"mainCRTStartup\" " )   

vc写QT时,console模式下会弹出一个dos黑窗口,加上上述语句解决。
另外,也可以在工程的linker里,修改system和entry
上一篇:libUV multicast例子问题
下一篇:vs2010下QT编程