国产探花免费观看_亚洲丰满少妇自慰呻吟_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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 安达市| 宜章县| 崇左市| 伊宁市| 铜梁县| 阿城市| 凤庆县| 来凤县| 博野县| 岳西县| 北流市| 西乡县| 柳林县| 织金县| 图木舒克市| 当涂县| 封丘县| 郑州市| 宁城县| 远安县| 旌德县| 宜兰市| 石台县| 麻阳| 固安县| 大冶市| 错那县| 娄烦县| 浙江省| 同江市| 新绛县| 韶关市| 绍兴县| 龙州县| 宜黄县| 棋牌| 渭源县| 秦皇岛市| 金乡县| 育儿| 孙吴县|