Set Visual C++ "linker subsystem" to CONSOLE for debug build in order to see stdout and stderr output on console.