J
Jeff Gaines
I posted this to the interop group but no response so far, hope people
don't mind my asking here.
I have down-loaded and am trying to understand a MSFT sample "Windows API
Code Pack 1.1".
In one of the comments it says:
To successfully import a COM interface, all inherited methods need to be
declared again with the exception of those already declared in IUnknown".
None of my interface prototypes do this, I didn't know it was necessary!
Interestingly they still seem to work though.
Is this correct?
I found a contradiction when I created a class based on the
IExplorerBrowser interface. My prototype for IExplorerBrowser defined it
as inheriting from IUnknown (rightly or wrongly) and the compiler
complained that I hadn't implemented the prototypes of IUnknown in the
class.
I would appreciate any comments or links so I can try and understand this
better!
Is there a definitive source of C# interface prototypes? Pinvoke.net is
good but I'm not sure it's definitive.
don't mind my asking here.
I have down-loaded and am trying to understand a MSFT sample "Windows API
Code Pack 1.1".
In one of the comments it says:
To successfully import a COM interface, all inherited methods need to be
declared again with the exception of those already declared in IUnknown".
None of my interface prototypes do this, I didn't know it was necessary!
Interestingly they still seem to work though.
Is this correct?
I found a contradiction when I created a class based on the
IExplorerBrowser interface. My prototype for IExplorerBrowser defined it
as inheriting from IUnknown (rightly or wrongly) and the compiler
complained that I hadn't implemented the prototypes of IUnknown in the
class.
I would appreciate any comments or links so I can try and understand this
better!
Is there a definitive source of C# interface prototypes? Pinvoke.net is
good but I'm not sure it's definitive.