Chinaunix首页 | 论坛 | 博客
  • 博客访问: 775
  • 博文数量: 1
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 20
  • 用 户 组: 普通用户
  • 注册时间: 2014-12-16 14:43
文章分类
文章存档

2014年(1)

我的朋友
最近访客

分类: Windows平台

2014-12-16 14:54:06

#ifndef __WIN32CONSOLE_INCLUDED
#define __WIN32CONSOLE_INCLUDED


/****************************************************************
compile with -DWIN32CONSOLE=1 to have console
and          -DWIN32CONSOLE=0 to hide console          -- default

compile with -DWIN32WINMAIN=1 to start from WinMain()
and          -DWIN32WINMAIN=0 to start from main()     -- default

Have effect only with MSVC 5.0+ when target platform is WIN32 and

****************************************************************/


#if defined(_MSC_VER) && defined(_WIN32)
#if WIN32WINMAIN
#if _UNICODE
#pragma comment(linker,"/ENTRY:wWinMainCRTStartup")
#else
#pragma comment(linker,"/ENTRY:WinMainCRTStartup")
#endif
#else
#if _UNICODE
#pragma comment(linker,"/ENTRY:wmainCRTStartup")
#else
#pragma comment(linker,"/ENTRY:mainCRTStartup")
#endif
#endif


#if WIN32CONSOLE
#pragma comment(linker,"/SUBSYSTEM:CONSOLE")
#else
#pragma comment(linker,"/SUBSYSTEM:WINDOWS")
#endif
#endif /* _MSC_VER, _WIN32 */


#endif /* __WIN32CONSOLE_INCLUDED__ */ 
阅读(32) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:没有了

给主人留下些什么吧!~~