::__argv ist NULL, but ::__argc is correct, why?
-
Hi, I am currently writing a unicode MFC application in VS 8, and I want to get my commandline arguments. So I use ::__argv and ::__argc, but while the argument count is always determined correctly, ::__argvs always NULL in my Apps InitInstance-method. Why? m_lpCmdLine however works, but I'd rather want to use __argv. Any hint why this parameter is always NULL?
-
Hi, I am currently writing a unicode MFC application in VS 8, and I want to get my commandline arguments. So I use ::__argv and ::__argc, but while the argument count is always determined correctly, ::__argvs always NULL in my Apps InitInstance-method. Why? m_lpCmdLine however works, but I'd rather want to use __argv. Any hint why this parameter is always NULL?
You should use CommandLineToArgvW[^] along with GetCommandLine[^] for UNICODE applications.
-
Hi, I am currently writing a unicode MFC application in VS 8, and I want to get my commandline arguments. So I use ::__argv and ::__argc, but while the argument count is always determined correctly, ::__argvs always NULL in my Apps InitInstance-method. Why? m_lpCmdLine however works, but I'd rather want to use __argv. Any hint why this parameter is always NULL?