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.
To get the raw command line use the following code (will work on any Win32 / MFC application):
TCHAR *pCommandLine = ::[GetCommandLine()][1];
int nArgc = 0;
LPWSTR *pArgv = ::CommandLineToArgvW(pCommandLine, &nArgc);
nArgc should be 1 when no arguments given and larger than 1 when there are. Then, pArgv1 will be the first argument, and so on...