Hmph. Having trouble parameterizing it because I can't for the life of me figure out how to properly reference and manipulate the _TCHAR* argv[]. Every time I try to do something with it, such as convert the string to an integer (so I can use a parameter for the number of timer seconds) it says "cannot convert parameter 1 from '_TCHAR **' to 'const wchar_t *'".

If I change the main() function so that it's not using the _T macros at all, then the rest of the program breaks.

I'd love to know the "right" way to handle that situation. Everything I've seen on the internet looks like a kludge to me. I just want to take the values in the arguments and turn them into integer or DWORD numbers so I can use them in the main code as case statements in a switch, or as the Seconds variable.
_________________________
Tony Fabris