Where I can disable in Microsoft-Visual-C++ showing console window?
You can disable console by manipulating pre-compiled EXE subsystem- this way you don't need any change in code as you are working on final product- negative aspect is that you would need to do this every time you recompile the project. You can do it via HEX editor or use free CFF Explorer.
You can do binary comparison and find the exact location in raw PE header, then maybe do some automation after-compile in VS