用VC生成最小的EXE文件
#include <windows.h>
#pragma comment( linker, "/subsystem:"windows" /entry:"mainCRTStartup"" ) // 设置入口地址隐藏运行!
#pragma comment(linker, "/OPT:NOWIN98")
#pragma comment(lib, "user32.lib")
#pragma comment(linker, "/ENTRY:main")
#pragma comment(linker, "/merge:.data=.text")
#pragma comment(linker, "/merge:.rdata=.text")
#pragma comment(linker, "/align:512")
#pragma comment(linker, "/subsystem:windows")
void main()
{
char* Msg = "你好";
char* Title = "Hello";
MessageBox(0, Msg, Title, 1); // MB_OK
}
补充:软件开发 , Vc ,