Found something on the internet that says he TCHAR equivalient for atoi() is _ttoi(). But when I try to use that, it breaks into the debugger at the line where I use it.

int nTempSuspendType;
nTempSuspendType = _ttoi(argv[2]);
_________________________
Tony Fabris