收集,收集,收集VC的主函数

BlueAtlantis 2002-12-02 08:44:39
VC有哪些主函数的写法啊?请大家能告诉我,以下是我知道的:
int main (char *, char *);
int _tmain (char *, char *);
int WinMain (HINSTANCE, HINSTANCE, LPSTR, int);
int _tWinMain (HINSTANCE, HINSTANCE, LPSTR, int);

带_t与不带_t的主函数有什么不同啊?
谢谢

...全文
19 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
dszch 2002-12-09
  • 打赏
  • 举报
回复
VC的主函数不是隐藏在主框架窗口里吗?怎么还会有?
cbc 2002-12-09
  • 打赏
  • 举报
回复
带_t的支持unicode
SuperSuperLéon 2002-12-09
  • 打赏
  • 举报
回复
/* Program */

#define _tmain wmain
#define _tWinMain wWinMain
#define _tenviron _wenviron
#define __targv __wargv

好些都类似:

tchar.h文件是这么说的:

更多的,请参考tchar.h文件。_t打头的,大部分在这里定义。


/***
*tchar.h - definitions for generic international text functions
*
* Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Definitions for generic international functions, mostly defines
* which map string/formatted-io/ctype functions to char, wchar_t, or
* MBCS versions. To be used for compatibility between single-byte,
* multi-byte and Unicode text models.
*
* [Public]
*
****/

1,649

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 非技术类
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧