When you start a new MFC project using the Application Wizard, the Application Wizard will create a local instance of CCommandLineInfo, and then call ProcessShellCommand and ParseCommandLine in the InitInstance member function. A command line follows the route described below:

After being created in InitInstance, the CCommandLineInfo object is passed to ParseCommandLine.

ParseCommandLine then calls CCommandLineInfo::ParseParam repeatedly, once for each parameter.