IFilter

T

timtos

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.
 
T

Thomas Matthews

timtos said:
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.

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
 
T

timtos

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

Greetings,
timtos.
 
K

Kevin Goodsell

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top