Thanks, I'll experiment with that tomorrow. I wonder why CWinApp::ParseCommandLine() isn't virtual? That would have made life a lot easier.