Thorsten Tarrach
2009-09-10 08:33:54 UTC
Hi,
I'm trying to implement an extension to Live Photo Gallery as specified here
in managed code:
http://msdn.microsoft.com/en-us/library/cc967061.aspx
It outlines a simple three step guide for managed applications to implement
this interface, but this does not work at all for me. I tried both with a
Windows Froms Form or with a WPF Window. I activated AllowDrop, handled the
relevant events and registered the classes with regasm /codebase /tbl. It
is also clear why it does not work: When I register this assembly and look
at the resulting registration using OLE-COM Object Viewer the registered
class only inherits from IDispatch, but not from IDropTarget.
So I tried to implement a COM Class manually in VB.net, inheriting from an
IDropTarget interface that is defined like this one:
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.ole.interop.idroptarget.aspx
but again after registration my class does not inherit the interface
IDropTarget.
Is it possible to make a .net class inherit from a COM interface in such a
way that this inheritance is also visible to COM?
In any case the three steps to write a managed extension to Live Photo
Gallery either don't work or are not detailed enough for me to successfully
reproduce.
Can you either point out where I went wrong with these three steps or with
manually creating a COM class?
Thanks,
Thorsten
I'm trying to implement an extension to Live Photo Gallery as specified here
in managed code:
http://msdn.microsoft.com/en-us/library/cc967061.aspx
It outlines a simple three step guide for managed applications to implement
this interface, but this does not work at all for me. I tried both with a
Windows Froms Form or with a WPF Window. I activated AllowDrop, handled the
relevant events and registered the classes with regasm /codebase /tbl. It
is also clear why it does not work: When I register this assembly and look
at the resulting registration using OLE-COM Object Viewer the registered
class only inherits from IDispatch, but not from IDropTarget.
So I tried to implement a COM Class manually in VB.net, inheriting from an
IDropTarget interface that is defined like this one:
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.ole.interop.idroptarget.aspx
but again after registration my class does not inherit the interface
IDropTarget.
Is it possible to make a .net class inherit from a COM interface in such a
way that this inheritance is also visible to COM?
In any case the three steps to write a managed extension to Live Photo
Gallery either don't work or are not detailed enough for me to successfully
reproduce.
Can you either point out where I went wrong with these three steps or with
manually creating a COM class?
Thanks,
Thorsten