国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開(kāi)發(fā)設(shè)計(jì) > 正文

Create Console for Logging in Win32 Application

2019-11-10 17:58:45
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

1 Create Console for Logging in Win32 application

Win32 Application is created without Console, which is quite useful for debuging.

1.1 AllocConsole && Redirect stdout

void InitConsole() { ASSERT_TRUE(AllocConsole()); auto out = GetStdHandle(STD_OUTPUT_HANDLE); auto message = "Console Allocated/n"; WriteConsole(out, message, (DWord)strlen(message), nullptr, nullptr); // redirect stream stdout mStdout = freopen("CONOUT$", "w", stdout); ASSERT_NOT_NULL(mStdout); 1.2 TODO: REPL

1) Support REPL in Console

See Also: AllocConsole, FreeConsole, GetStdHandle


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 平利县| 大田县| 离岛区| 新乡县| 芦溪县| 天等县| 宿州市| 荆门市| 沂南县| 乌兰察布市| 项城市| 高台县| 尼木县| 巴塘县| 永济市| 沐川县| 红原县| 湖北省| 天祝| 寻甸| 旺苍县| 洛川县| 科尔| 南充市| 云浮市| 那曲县| 恭城| 武穴市| 潢川县| 罗江县| 土默特右旗| 麻阳| 迭部县| 晋城| 玉溪市| 密云县| 肥西县| 芜湖县| 禄劝| 格尔木市| 醴陵市|