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

首頁 > 學院 > 開發設計 > 正文

Create Console for Logging in Win32 Application

2019-11-10 17:14:03
字體:
來源:轉載
供稿:網友

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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 嵊泗县| 永福县| 揭西县| 舟山市| 方城县| 滦南县| 宝鸡市| 黑龙江省| 扎鲁特旗| 桦南县| 青州市| 开阳县| 旅游| 台北市| 四会市| 兴山县| 望都县| 东丽区| 新郑市| 锡林郭勒盟| 罗甸县| 颍上县| 阿荣旗| 平舆县| 巴彦县| 克东县| 清丰县| 韶山市| 阳朔县| 崇仁县| 黔西县| 朔州市| 大厂| 石景山区| 衡阳市| 阿坝县| 怀宁县| 毕节市| 彝良县| 毕节市| 黄冈市|