> +int PASCAL wWinMain ( HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int show ) Sorry for asking this too late, but what's the point to use WinMain in pure console application? 'cmd' and 'xcopy' use wmain. -- Kirill