Getting the WinMain() lpCmdLine in UnicodeLast reviewed: November 2, 1995Article ID: Q90912 |
The information in this article applies to:
The prototype for WinMain() is as follows:
int PASCAL WinMain( HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow );The third parameter is an LPSTR, which specifies an ANSI string. WinMain() cannot be defined to accept Unicode input because there is no way for the system to know whether or not the application wants Unicode at the time WinMain() is called; the system knows once the application has registered a window class. To get the arguments in Unicode, use GetCommandLine().
|
Additional reference words: 3.10 3.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |