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

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

Create Console for Logging in Win32 Application

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

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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 温州市| 监利县| 江北区| 长海县| 大英县| 汤阴县| 阜平县| 平邑县| 合水县| 黄龙县| 闸北区| 公安县| 静乐县| 万载县| 青河县| 响水县| 福建省| 霸州市| 普宁市| 建湖县| 宾阳县| 盐池县| 广昌县| 乳山市| 巧家县| 灌阳县| 张家口市| 会昌县| 囊谦县| 灌云县| 葵青区| 久治县| 河北省| 读书| 江孜县| 长乐市| 曲麻莱县| 东乡县| 阳春市| 湟中县| 洪泽县|