#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )
#include<windows.h>
void main() {
MessageBoxA(0, "df", "dfjks", 0);
}
为什么我预编译后运行仍然有黑窗口啊,求教
#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )
#include<windows.h>
void main() {
MessageBoxA(0, "df", "dfjks", 0);
}
为什么我预编译后运行仍然有黑窗口啊,求教
在你的项目属性里面的连接器选项里面修改下subsystem为windows试试看