I wish to have a small dialog based application which is passed command line parameters, so, using VC++6 I ran the application wizard and chose an MFC dialog application.
In MFC applications, the entry point function is 'initInstance()', like main() or wmain(). Use CWinApp::m_lpCmdLine in initInstance() to access the command line.