A
ampeloso
Hello,
I am compileing a project and I get multiple errors in my switch
statements "illegal case"
Here is some code that looks OK to me.I get an error for eaxh case
These are all ansi c using VS 2005 compiler.
for (i= 1; i < (argc - 1); i++)
{
switch (argv[0])
{
case '-':
switch (argv[1])
{
case 'h':
case 'H':
showHelp(); /* Show help screen and */
return(1); /* exit program. */
break;
case 'c':
case 'C':
memcpy(comPortName, &argv[2], strlen(argv)-2);
break;
case 'p':
case 'P':
passwdFile= &argv[2];
break;
case 'w': case 'W':
toDo.Wait= 1; /* Do wait for <Enter> at the end! */
break;
case '1':
toDnePass= 1;
break;
case 'f':
case 'F':
Thanks
Mike
I am compileing a project and I get multiple errors in my switch
statements "illegal case"
Here is some code that looks OK to me.I get an error for eaxh case
These are all ansi c using VS 2005 compiler.
for (i= 1; i < (argc - 1); i++)
{
switch (argv[0])
{
case '-':
switch (argv[1])
{
case 'h':
case 'H':
showHelp(); /* Show help screen and */
return(1); /* exit program. */
break;
case 'c':
case 'C':
memcpy(comPortName, &argv[2], strlen(argv)-2);
break;
case 'p':
case 'P':
passwdFile= &argv[2];
break;
case 'w': case 'W':
toDo.Wait= 1; /* Do wait for <Enter> at the end! */
break;
case '1':
toDnePass= 1;
break;
case 'f':
case 'F':
Thanks
Mike