How to get IStream on ordinary file ?
-
I have written an object supporting IPersistStreamInit. Now I want to save/load it in/from ordinary (not structured file). How to get IStream on ordinary file ? :confused: Or I must add an IPersistFile to my object ? Thanks in advance, Valery
You'll have to implement it yourself. Not very hard as IStream methods map pretty much 1:1 to the Win32 API. -- I am perpetual, I keep the country clean.
-
You'll have to implement it yourself. Not very hard as IStream methods map pretty much 1:1 to the Win32 API. -- I am perpetual, I keep the country clean.
-
Of course you should, but still - you need that IStream, and if you don't want to use structured storage, you'd have to implement your own
class CFileStream : public IStream
. :) -- I am perpetual, I keep the country clean. -
Of course you should, but still - you need that IStream, and if you don't want to use structured storage, you'd have to implement your own
class CFileStream : public IStream
. :) -- I am perpetual, I keep the country clean.