{"id":20697221,"url":"https://github.com/tsnsoft/dialogblocksconsoleapphello","last_synced_at":"2026-05-08T02:12:05.543Z","repository":{"id":207789216,"uuid":"720100215","full_name":"tsnsoft/DialogBlocksConsoleAppHello","owner":"tsnsoft","description":"Пример простейшей консольной программы на C++ с использованием wxWidgets и DialogBlocks для Visual Studio 2022","archived":false,"fork":false,"pushed_at":"2025-07-12T09:59:49.000Z","size":5919,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-12T11:50:55.624Z","etag":null,"topics":["console","cpp","cross-platform","dialogblocks","linux","visual-studio","windows","wxwidgets"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsnsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-17T15:24:07.000Z","updated_at":"2025-07-12T09:59:53.000Z","dependencies_parsed_at":"2025-02-11T12:27:33.897Z","dependency_job_id":"c51f313d-35b6-4424-9754-2617e2d962b5","html_url":"https://github.com/tsnsoft/DialogBlocksConsoleAppHello","commit_stats":null,"previous_names":["tsnsoft/dialogblocksconsoleapphello"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsnsoft/DialogBlocksConsoleAppHello","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FDialogBlocksConsoleAppHello","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FDialogBlocksConsoleAppHello/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FDialogBlocksConsoleAppHello/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FDialogBlocksConsoleAppHello/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsnsoft","download_url":"https://codeload.github.com/tsnsoft/DialogBlocksConsoleAppHello/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FDialogBlocksConsoleAppHello/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27992997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["console","cpp","cross-platform","dialogblocks","linux","visual-studio","windows","wxwidgets"],"created_at":"2024-11-17T00:17:12.117Z","updated_at":"2025-12-24T02:11:57.448Z","avatar_url":"https://github.com/tsnsoft.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DialogBlocksConsoleAppHello\nПример простейшей консольной программы на C++ с использованием wxWidgets и DialogBlocks для Visual Studio 2022\n\n![srcreenshot](screenshot.png)\n\n```\n#include \u003cwx/wx.h\u003e\n#include \u003clocale\u003e\n#include \u003ccodecvt\u003e\n#include \u003ciostream\u003e\n\nint main(int argc, char** argv)\n{\n    setlocale(LC_ALL, \"ru_RU.UTF-8\"); // Установить русскую локаль для Linux\n    wxLocale m_locale; // Создать объект локали для wxWidgets\n    m_locale.Init(wxLANGUAGE_RUSSIAN, wxLOCALE_DONT_LOAD_DEFAULT); // Установить локаль для wxWidgets\n\n#ifdef __WXMSW__ // Определение для Windows\n    _setmode(_fileno(stdout), _O_U16TEXT); // Установить Юникод для вывода в консоли Windows\n    _setmode(_fileno(stdin), _O_U16TEXT); // Установить Юникод для ввода в консоли Windows\n    _setmode(_fileno(stderr), _O_U16TEXT); // Установить Юникод для вывода ошибок в консоли Windows\n#endif\n\n    wxPuts(L\"Замечательно! Das ist großartig! Wonderful! 精彩的！ رائع!\\n\");\n    wxPrintf(L\"Введите имя: \");\n    \n    std::wstring fio; // Создать строковую переменную\n    std::wcin \u003e\u003e fio; // Считать строку\n    \n    wxPuts(L\"Привет, \" + fio + L\"!\"); // Вывести строку\n    wxPuts(L\"Размер строки: \" + std::to_wstring(fio.length())); // Вывести размер строки\n\n    for (std::wstring::size_type i = 0; i \u003c fio.length(); i++) {\n        wxPuts(L\"[\" + std::to_wstring(i) + L\"]: \" + std::wstring(1, fio[i]) + \n               L\" (code: \" + std::to_wstring(int(fio[i])) + L\")\");\n    }\n\n#ifdef __WXMSW__ // Определение для Windows\n    system(\"pause\"); // Приостановить выполнение программы\n#else // Определение для Linux\n    system(\"read -p \\\"Нажмите Enter для продолжения...\\\" var\"); // Приостановить выполнение программы\n#endif\n\n    return 0;\n}\n```\n\n## Ссылки:\n\nhttp://www.anthemion.co.uk/dialogblocks/\n\nhttps://www.wxwidgets.org/\n\nhttps://visualstudio.microsoft.com/ru/vs/community/\n\nhttp://www.anthemion.co.uk/dialogblocks/ImageBlocks-1.07-Setup.exe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fdialogblocksconsoleapphello","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsnsoft%2Fdialogblocksconsoleapphello","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fdialogblocksconsoleapphello/lists"}