开发者

How can we convert a FILE* to a HANDLE?

Is there any where to convert a open FILE* returned from fopen to a HANDLE that is used in the Window开发者_Python百科s API functions? If so, how?


(HANDLE)_get_osfhandle(_fileno( file ) )

Good luck on 64-bit systems if you're using Visual C++ 2008 or earlier, though, because the return type is long on those. :(

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜