What is the difference between wmain and main?

前端 未结 3 1137
南方客
南方客 2020-12-03 10:13

So I have some class starting with

#include 
#include 

and there is a wmain function .

3条回答
  •  孤城傲影
    2020-12-03 10:47

    The difference between main and wmain is the type used to represent the arguments to the program. The main function uses normal char while wmain uses wchar_t which can accept unicode values

    • http://msdn.microsoft.com/en-us/library/aa299386(VS.60).aspx

提交回复
热议问题