在链接标志中加入参数: /SUBSYSTEM:WINDOWS,"5.01"
在ide环境下:
项目属性-常规-平台工具集-Visual Studio 2013 - Windows XP (v120_xp)
参考:
http://dpinglee.blog.163.com/blog/static/144097753201491811532623/
http://blog.csdn.net/yangshishu/article/details/37923485
http://blog.csdn.net/kl222/article/details/45576315