The app is Windows 7 Enterprise, MFC, Visual Studio 2008, C++, unicode enabled
The argument needed is a single character. VS is configured to provide command line argument, value is "1", argc has incremented from 1 to 2 after adding the command line argument.
char str_number = __argv[ 1 ];
Compile error cannot convert from char* to char, cool, understood
char str_number = *__argv[ 1 ];
Access violation reading location 0x00000004
char str_number = *__argv[ 1,0];
Access violation reading location 0x00000000
What I have tried:
I have tried the examples shown in block: Describe the problem.