Re: Storage app
Check out OLE Compound Files. See the following functions:
StgCreateStorageEx
StgOpenStorageEx
and interfaces:
IStorage
IRootStorage
IStream
If you care about encryption on the fly, see:
StgCreateDocfileOnILockBytes
StgOpenStorageOnILockBytes
ILockBytes
In this case you'll have to implement ILockBytes yourself.
You may also want to check OLE's persistence mechanism
for COM objects (not sure whether it's relevant for you):
IPersist
IPersistStream
IPersistStreamInit
IPersistStorage
IMoniker (for links)
A useful book for all of the above would be:
"Inside OLE" second edition by Kraig Bockschmidt, MS Press
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"CodeTestDummy" <sharp_mind.TAKETHISOUT@email.TAKETHISOUT.msn.com> wrote in
message news:eWt3Tw88HHA.4432@TK2MSFTNGP02.phx.gbl...
All,
I would like write an app where I can store folder structure and file in
it and access them on the fly. How can I go about doing this? All advice
are welcome. Thanks...