Getting a HANDLE from a std::ofstream

后端 未结 6 1761
天涯浪人
天涯浪人 2021-01-18 14:34

Is it possible to get the underlying file HANDLE from a std::ofstream (Visual C++ 2005)?

This is the opposite of this question:

Can I use CreateFile, but for

6条回答
  •  误落风尘
    2021-01-18 15:23

    No. You can't even get at the FILE* (or _Filet* as it's internally known) inside std::basic_filebuf.

提交回复
热议问题