Re: Using command line help
I am not sure if it is a good thing to call GetCommandLine(). This will override the content of lpCmdLine. This is a pity since lpCmdLine is already containing your command line. You can see what is in this variable, with
Code:
FILE *log_fp; log_fp = fopen(log_file, "wt"); fprintf(log_fp, lpCmdLine); fclose(log_fp);
Re: Using command line help
To convert the command line to an argv style array of strings, call CommandLineToArgvW which is explained at GetCommandLine
Re: Using command line help
You can use the global variables __argc and __argv (and probably __envp), which contain the cmdline arguments like in a standard C program