level 3
如题,用MessageBox写了一个窗体,想把那个黑乎乎的dos窗口去掉,在cb中如何实现?
2014年04月05日 11点04分
1
level 9
非常简单。
右键点击项目,选择属性->build targets,把 Console Applaication 改为 GUI 即可。
或者直接在编译的时候,选择编译目标位 Release。
其实 debug 目标的时候保留控制台窗口是有很大好处的,你可以在程序里加上 printf,便于调试程序,例如输出指针地址、判别是否进入某个消息 case 里。
2014年07月02日 17点07分
5
我也照做了,可为什么就是行不通呢
![[泪]](/static/emoticons/u6cea.png)
?
2017年06月29日 14点06分