Difference between WinMain and wWinMain

Posted by Sherwood Hu on Stack Overflow See other posts from Stack Overflow or by Sherwood Hu
Published on 2009-11-24T19:12:51Z Indexed on 2010/04/18 22:23 UTC
Read the original article Hit count: 398

Filed under:
|
|
|
|

The only difference is that Winmain takes char* for lpCmdLine parameter, while wWinMain takes wchar_t*.

On Windows XP, if an application entry is WinMain, does Windows convert the command line from Unicode to Ansi and pass to the application?

If the command line parameter must be in Unicode (for example, Unicode file name, conversion will cause some characters missing), does that mean that I must use wWinMain as the entry function?

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows