C++中wmain和main有什么区别与联系
高洛峰
高洛峰 2017-04-17 14:48:02
0
1
600

C++中wmain和main有什么区别与联系,越详细越好,有底层分析最好了

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
Peter_Zhu

The command line parameter value argv passed in by the main function is an array of char , and the command line argv passed in by the wmain function is an array of wchar_t .
In addition, Windows also has a _tmain, argv is an array of TCHAR *, and the first two will be selected according to whether to use Unicode according to the compilation settings.
Generally, main is enough, because it is rare that there are Unicode characters to be processed in the command line. Even if you really want to deal with special characters such as Chinese, Windows also provides the GetCommandLine function to obtain the command line.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template