天蓬老师2017-04-17 14:50:02
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.