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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -