Discussion:
ISpecifyPropertyPages saving and restoring settings
(too old to reply)
No Spam Man
2003-11-09 07:36:26 UTC
Permalink
I've got a configuration application where I want to use the
ISpecifyPropertyPages interface to present a filters properties pages,
allowing the used to set them as they wish. I want be able to persist these
settings, and restore them when I later build a graph using that filter. Am
I able to do this?

I'm not really interested in the specific settings on the pages, I just want
a way to allow a filter to save its own settings to a file of my choosing,
and to later restore it settings from that file.

Is this possible? If so what is the general approach?


Cheers
Alessandro Angeli [MVP::DigitalMedia]
2003-11-09 14:56:45 UTC
Permalink
Post by No Spam Man
I've got a configuration application where I want to use
the ISpecifyPropertyPages interface to present a filters
properties pages, allowing the used to set them as they
wish. I want be able to persist these settings, and
restore them when I later build a graph using that
filter. Am I able to do this?
I'm not really interested in the specific settings on the
pages, I just want a way to allow a filter to save its
own settings to a file of my choosing, and to later
restore it settings from that file.
Is this possible? If so what is the general approach?
It depends on the filter, DirectShow does not require any
support for state persistence. Most filters implement
IPersistStream, which is what the filter graph manager uses
to save to and load from a GRF file.
--
/**
* Alessandro Angeli
*
* MVP::DigitalMedia
*
* a dot angeli at biosys dot net
*/
Loading...