COM提供了两个内建IStream对象,一个是在全局堆中,一个是使用文件
全局堆:
使用 CreateStreamOnHGlobal
文件使用
StgCreateDocfile 得到IStorage接口指针,使用IStorage的方法CreateStream或OpenStream得到IStream接口指针
详见MSDN
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stg/stg/istream_compound_file_implementation.asp
全局堆:
使用 CreateStreamOnHGlobal
文件使用
StgCreateDocfile 得到IStorage接口指针,使用IStorage的方法CreateStream或OpenStream得到IStream接口指针
详见MSDN
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stg/stg/istream_compound_file_implementation.asp
博客介绍COM提供的两个内建IStream对象,一个在全局堆,一个使用文件全局堆。还说明了获取IStream接口指针的方法,如使用CreateStreamOnHGlobal文件,用StgCreateDocfile得到IStorage接口指针,再通过其方法获取IStream接口指针,可参考MSDN文档。
3529

被折叠的 条评论
为什么被折叠?



