emacsclientw.exe should be a GUI program, rather than a console program. When it is run with no arguments, it should show a message box. However, emacsclientw.exe compiled by VC++ 2010 express is a console program. It shows a black console window when it starts.