c++ - how do I write to stdout from an MFC program? -
mfc programs can't write stdout. mfc weird stdout/stdin pipes during startup , write (for example doing printf("hello");) goes /dev/null.
does know how write stdout mfc program?
thanks reading.
use allocconsole function create console writing into. following article explains how use print console.
creating console mfc app's debug output
dont forget freeconsole once you're done it.
Comments
Post a Comment