Connecting Tech Pros Worldwide Help | Site Map

IFilter

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 19th, 2005, 05:28 PM
timtos
Guest
 
Posts: n/a
Default IFilter

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.



  #2  
Old July 19th, 2005, 05:28 PM
Thomas Matthews
Guest
 
Posts: n/a
Default 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

  #3  
Old July 19th, 2005, 05:28 PM
timtos
Guest
 
Posts: n/a
Default 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]


  #4  
Old July 19th, 2005, 05:28 PM
Kevin Goodsell
Guest
 
Posts: n/a
Default 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.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.