Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何加载带有文件内容的流?
Stream^ data; // How to load this with file contents?
我想用我硬盘上的文件加载这个流。
这里有一些 MSDN 上的示例,这里和高级概述这里。后者的示例在 C# 和 VB 中,但很容易翻译成 C++/CLI。