Windows equivalent to “/dev/stdin”?

前端 未结 3 1937
天命终不由人
天命终不由人 2021-01-11 16:04

I have Python code talking to a C++ library which only takes filenames. I want it to read from stdin. On Unix machines I can use \"/dev/stdin\". I thought I could use the sp

3条回答
  •  不要未来只要你来
    2021-01-11 16:33

    I may be misinterpreting your question - you know about cin and stdin, right? If you need a real live winapi handle for ReadFile or whatever, use GetStdHandle(STD_INPUT_HANDLE)

提交回复
热议问题