-1

非コンソール C++ アプリケーションにリスナーを実装して、Adobe AIR からの標準入力をリッスンするにはどうすればよいですか?
C# コンソール アプリでは次のようになります。

namespace HelloNativeProcess
{
    class Program
    {
        static void Main(string[] args)
        {

            using (Stream stdin = Console.OpenStandardInput())
            using (Stream stdout = Console.OpenStandardOutput())
            {
                byte[] buffer = new byte[2048];
                int bytes;
                while ((bytes = stdin.Read(buffer, 0, buffer.Length)) > 0)
                {
                    stdout.Write(buffer, 0, bytes);
                }
            }
        }
    }
}

APIENTRY winMain() - 開始関数を使用した C++ の例が必要です。ありがとう。

4

1 に答える 1