<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>USAGI-WRP</author_name>
  <author_url>https://blog.hatena.ne.jp/USAGI-WRP/</author_url>
  <blog_title>C++ ときどき ごはん、わりとてぃーぶれいく☆</blog_title>
  <blog_url>https://usagi.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Windows</anon>
    <anon>デスクトップアプリ</anon>
    <anon>GUI</anon>
    <anon>WinMain</anon>
    <anon>wWinMain</anon>
    <anon>std::cout</anon>
    <anon>std::wcout</anon>
    <anon>標準入力</anon>
    <anon>標準出力</anon>
    <anon>標準エラー出力</anon>
    <anon>コンソール</anon>
    <anon>std::cerr</anon>
    <anon>std::wcerr</anon>
    <anon>std::clog</anon>
    <anon>std::wclog</anon>
  </categories>
  <description>Visual Studio で Windows デスクトップアプリを作る場合は WinMain / wWinMain がエントリーポイントのプロジェクトを扱うのが一般的です。コンソールアプリとして作って GLFW から画面を出したり imgui でGUIを作ったり、コンソールアプリの実行時に Win32 API を叩いてウィンドウハンドルを操作して…というのは特別理由が無ければふつーはしません。 そうすると、 std::cout / std::wcout はじめ標準出力、標準エラー出力、標準入力を扱う仕組みが &quot;コンソールへ文字列を出したい&quot; という点では期待動作はしなくなります。でも、出した…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fusagi.hatenablog.jp%2Fentry%2F2019%2F12%2F07%2F090000&quot; title=&quot;C++/Windows: WinMain/wWinMain な Windows デスクトップ向けアプリで std::cout / std::wcout とかをコンソールに直接出したいときのメモ - C++ ときどき ごはん、わりとてぃーぶれいく☆&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/U/USAGI-WRP/20191207/20191207033750.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-07 09:00:00</published>
  <title>C++/Windows: WinMain/wWinMain な Windows デスクトップ向けアプリで std::cout / std::wcout とかをコンソールに直接出したいときのメモ</title>
  <type>rich</type>
  <url>https://usagi.hatenablog.jp/entry/2019/12/07/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
