Embarassing IStream question
-
Hi, This question is going to make me sound really dumb, but here goes: What is the easiest way to create and IStream from on a file with a given path? Joel Holdsworth
-
Hi, This question is going to make me sound really dumb, but here goes: What is the easiest way to create and IStream from on a file with a given path? Joel Holdsworth
If using MFC - you can try
CArchiveStream
declared inafxpriv2.h
(create CFile, create CArchive on it and then CArchiveStream). But the implementation is not full. One of the major methods,Stat
, is not implemented. Otherwise, AFAIK, you have to implement it manually... BTW, the question is very interesting. If anyone knows whether a system contains a ready-to-use function that returns IStream* on a file path, please tell! One always gets the deserved. -
Hi, This question is going to make me sound really dumb, but here goes: What is the easiest way to create and IStream from on a file with a given path? Joel Holdsworth
Check out
SHCreateStreamOnFile()
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ Magnae clunes mihi placent, nec possum de hac re mentiri.