Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 May : IPropertySetStorage, IPropertyStorage - How do I create property(set)

www.cryer.info
Managed Newsgroup Archive

IPropertySetStorage, IPropertyStorage - How do I create property(set)

Subject:IPropertySetStorage, IPropertyStorage - How do I create property(set)
Posted by:"PeaShooter_OMO" (jacquesv..@homemail.co.za)
Date:Tue, 9 May 2006 00:56:28 -0700

How do I create a property (a property to store info about the bitmap) for a
bitmap file (.bmp) on a FAT32 volume and read it later?

I tried using IPropertySetStorage, IPropertyStorage, PropVariant and
PropSpec but with no success.

I used IShellFolder.BindToStorage to create the IPropertySetStorage.
Then used the IPropertySetStorage to create the IPropertyStorage.
Then used PropVariant and PropSpec to set the info by using
IPropertyStorage.WriteMultiple.

This seems to work fine when I create the property and I can determine with
an enumaration that the property
exists but only within the scope (...while having the IPropertySetStorage
and IPropertyStorage open with which I created the property)
but as soon as I leave the scope the property is not there anymore.

Does anyone have an example for a "non-OLE-structured file" on a FAT32
volume and can it be done?

Glossary

File Types

Replies:

www.cryer.info
Managed Newsgroup Archive