调试 -- 为GUI程序添加控制台调试信息输出

//z 2014-08-09 22:35:42 L.144' 5058 BG57IV3@BYH T3162696792.K.F3863291090[T5,L330,R3,V36] IS2120
1. 在winmain 中添加
AllocConsole();
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);

2. 定义全局的宏
#ifdef _DEBUG
# define Debug(fmtstr, ...) printf(fmtstr, ##__VA_ARGS__)
#else
# define Debug(fmtstr, ...)
#endif


@IS2120#CNBLOGS.T2169364049[T1,L65,R1,V259]:备忘
$ € ₤ ₭ ₪ ₩ ₮ ₦ ₱ ฿ ₡ ₫ ﷼ ¥ ﷼ ₫ ₡ ฿ ₱ ₦ ₮ ₩ ₪ ₭ ₤ € $
原文地址:https://www.cnblogs.com/IS2120/p/6745638.html