chrisk
2007-07-08 11:03:19 UTC
Hi
I'm trying to write a simple thumbnail provider for my file type on
Vista. Following instructionst on various web pages and an example
from SDK I wrote a class implementing IThumbnailProvider and
IInitializeWithStream. It works fine and my test thumbnail appears,
but then I realized that I need a filepath to get the right thumbnail,
so instead of implementing IInitializeWithStream I need to go with
IInitializeWithFile.
And here is my problem - it doesn't work. I've put a trace message in
every method and using debugger i fugured than in both cases the
constructor is called, but the Initialize, and GetThumbnail methods
are not, when i use IInitializeWithFile. Since the constructor is
called the registration part must be ok. I took GUID's from SDK's .idl
files so they should be fine too. I'm new to this subject so I don't
really know where to look for error.
Any suggestions would be really helpful.
Chris
I'm trying to write a simple thumbnail provider for my file type on
Vista. Following instructionst on various web pages and an example
from SDK I wrote a class implementing IThumbnailProvider and
IInitializeWithStream. It works fine and my test thumbnail appears,
but then I realized that I need a filepath to get the right thumbnail,
so instead of implementing IInitializeWithStream I need to go with
IInitializeWithFile.
And here is my problem - it doesn't work. I've put a trace message in
every method and using debugger i fugured than in both cases the
constructor is called, but the Initialize, and GetThumbnail methods
are not, when i use IInitializeWithFile. Since the constructor is
called the registration part must be ok. I took GUID's from SDK's .idl
files so they should be fine too. I'm new to this subject so I don't
really know where to look for error.
Any suggestions would be really helpful.
Chris