_tmain()

用VC++创建项目后,代码里出来个:

int _tmain(int argc, _TCHAR* argv[])

这里的_tmain()实际是个宏,如果定义了Unicode,则用wmain();否则,用main()。这是tchar.h里面的代码:

#ifdef  _UNICODE

#define _tmain      wmain

#else   /* ndef _UNICODE */

#define _tmain      main

Advertisements
此条目发表在未分类分类目录。将固定链接加入收藏夹。

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s