int i = __argc; char *arg1 = __argv[1]; char *arg2 = __argv[2]; char *arg3 = __argv[3]; 发现面不能在 unicode 项目中运行 找原因: (1) 在 __argc 地址处下断点 (2) 启动程序,找到原因了 //####################### /* store args and argv ptrs in just allocated block */ #ifdef WPRFLAG wparse_cmdline(cmdstart, (wchar_t **)p, (wchar_t *)(((char *)p) + numargs * sizeof(wchar_t *)), &numargs, &numchars); #else /* WPRFLAG */ parse_cmdline(cmdstart, (char **)p, p + numargs * sizeof(char *), &numargs, &numchars); #endif /* WPRFLAG */ /* set argv and argc */ __argc = numargs - 1; #ifdef WPRFLAG __wargv = (wchar_t **)p; //看来Unicode要用这个了 #else /* WPRFLAG */ __argv = (char **)p; #endif /* WPRFLAG */ #ifdef WILDCARD