Did you ever try to write to the standard output using STDOUT but never seen your output in the console?

This is a little known thing about PE executable on windows that were compiled to be GUI.