int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
I want to be able to set some parameters on the command line when the program is executed, probably from a shortcut with the appropriate values set there.
However, when I look at the last two items nCmdShow is 1, and lpCmdLine is blank.
I have tried using GetCommandLine and that has also returned a blank string.
I have tried adding a parameter to the properties of the shortcut but this has made no difference.
I have even tried through a cmd window and moving to the program's home directory and adding a parameter there. Again, no luck.
The CommandLinetoArgvW function does not seem to exist in VC++ 2010 Express. The documentation says:
This function only works with the Unicode/Wide character set and there seem to be no CommandLineToArgvA ANSI equivalent function.
Where do I go now?