Connecting Tech Pros Worldwide Forums | Help | Site Map

IFilter

timtos
Guest
 
Posts: n/a
#1: Jul 19 '05
I want to use the IFilter interface. For that I am using the method

STDAPI LoadIFilter(WCHAR const * pwcsPath,
IUnknown * pUnkOuter,
void ** ppIUnk);

and this is working fine if the file extension of the passed file is known.
Otherwise the null filter is returned what I donīt want. Files with unknown
extension should use the default plain text filter.

But although setting the registry entries FilterFilesWithUnknownExtensions to 1,
LoadIFilter always returns null for these files.

How is it possible to get a valid filter for these types?
Thanks A LOT for any kind of information!

Greetings,
timtos.



Thomas Matthews
Guest
 
Posts: n/a
#2: Jul 19 '05

re: IFilter


timtos wrote:[color=blue]
> I want to use the IFilter interface. For that I am using the method
>
> STDAPI LoadIFilter(WCHAR const * pwcsPath,
> IUnknown * pUnkOuter,
> void ** ppIUnk);
>
> and this is working fine if the file extension of the passed file is known.
> Otherwise the null filter is returned what I donīt want. Files with unknown
> extension should use the default plain text filter.
>
> But although setting the registry entries FilterFilesWithUnknownExtensions to 1,
> LoadIFilter always returns null for these files.
>
> How is it possible to get a valid filter for these types?
> Thanks A LOT for any kind of information!
>
> Greetings,
> timtos.
>
>[/color]

I couldn't find "IFilter" in the C++ FAQ.
I couldn't find "IFilter" in the ARM C++ compiler.
I couldn't find "IFilter" in the GNU C++ compiler.
I couldn't find "IFilter" in the Borland C++ builder compiler.

Hmm, probably a platform specific function and best discussed
in a platform or compiler specific newsgroup. Please see the
FAQ and Welcome.txt links below for more appropriate newsgroups.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

timtos
Guest
 
Posts: n/a
#3: Jul 19 '05

re: IFilter


Ok - it is a Platform SDK function!
Sorry for posting here but thanks for the answer!

Greetings,
timtos.

"Thomas Matthews" <Thomas_MatthewsReallyHatesSpam@sbcglobal.net> wrote in message news:3F635946.5030905@sbcglobal.net...[color=blue]
> timtos wrote:[color=green]
> > I want to use the IFilter interface. For that I am using the method
> >
> > STDAPI LoadIFilter(WCHAR const * pwcsPath,
> > IUnknown * pUnkOuter,
> > void ** ppIUnk);
> >
> > and this is working fine if the file extension of the passed file is known.
> > Otherwise the null filter is returned what I donīt want. Files with unknown
> > extension should use the default plain text filter.
> >
> > But although setting the registry entries FilterFilesWithUnknownExtensions to 1,
> > LoadIFilter always returns null for these files.
> >
> > How is it possible to get a valid filter for these types?
> > Thanks A LOT for any kind of information!
> >
> > Greetings,
> > timtos.
> >
> >[/color]
>
> I couldn't find "IFilter" in the C++ FAQ.
> I couldn't find "IFilter" in the ARM C++ compiler.
> I couldn't find "IFilter" in the GNU C++ compiler.
> I couldn't find "IFilter" in the Borland C++ builder compiler.
>
> Hmm, probably a platform specific function and best discussed
> in a platform or compiler specific newsgroup. Please see the
> FAQ and Welcome.txt links below for more appropriate newsgroups.
>
> --
> Thomas Matthews
>
> C++ newsgroup welcome message:
> http://www.slack.net/~shiva/welcome.txt
> C++ Faq: http://www.parashift.com/c++-faq-lite
> C Faq: http://www.eskimo.com/~scs/c-faq/top.html
> alt.comp.lang.learn.c-c++ faq:
> http://www.raos.demon.uk/acllc-c++/faq.html
> Other sites:
> http://www.josuttis.com -- C++ STL Library book
> http://www.sgi.com/tech/stl -- Standard Template Library
>[/color]


Kevin Goodsell
Guest
 
Posts: n/a
#4: Jul 19 '05

re: IFilter


timtos wrote:
[color=blue]
> Ok - it is a Platform SDK function!
> Sorry for posting here but thanks for the answer!
>[/color]

Don't apologize for posting here. You are perfectly welcome (as is
anyone) to post here. But please, be careful about posting off-topic
messages. This applies to all newsgroups and discussion forums.

Also, please don't top-post when replying. Section 5 of the FAQ (a very
useful document) contains posting guidelines:

http://www.parashift.com/c++-faq-lite/

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Closed Thread