Hello,
I need to read commandline arguments for my VS C++ program:
I have set cmdString array length to be 1000 but I am not sure how long command line length might be.Code:wchar_t cmdString[1000]; wcscpy_s(cmdString, (wchar_t *)GetCommandLine());
Is there any solution that can let me assign on the fly like below:
What is the right approach for initializing such kind of variables that their length is unknown?Code:wchar_t cmdString[] = (wchar_t *)GetCommandLine()