I have:

int _tmain(int argc, char* argv[])
printf("drive name: %s\n", argv[1]);

It displays only the first character of the first argument on the command line.

Yet the following works as expected:

static char* myArg[2] = {"first arg","second arg"};
printf("drive name: %s\n", myArgv[1]);

That displays the entire string "second arg".

So what's wrong with my reference to argv[1]?