How would I parse command line arguments inside of a program.
So the normal way to do it is with argc and argv which then requires you to type something like prog.exe arg1 arg2.
How would I go about making it run with only the program prog.exe
Then inside of prog.exe it waits for input in the form "insert x" where insert is the function and x is the value to insert. Also insert isnt the name of the function so I would need to be able to have insert call an insert function not called insert.
Is it possible to parse arguments int he same form as argc and argv inside of the program instead of when main is called?
<shellapi.h> defines the function WCHAR * CALLBACK CommandLineToArgvW(WCHAR * szCmdLine, int * pcArgs) which you can use to turn a null terminated wide character string into argc and argv like outputs. For example: