ATL templates for IDispatch derived classes
Tomor开发者_如何学Pythonrow I have planed to do some IDispatch related work, and I will have to create a class that supports this interface.
I have been using ATL classes for a while to create COM objects and manage COM pointers, so I would like to use them for my class as well. But research so far, and discussions with colleagues have led me to believe that I need all the heavyweight IDL stuff even if I want to create a simple class with one property or method.
If that's the case I'll probably resort to writing everything from scratch, but I still hope I'm missing something. Is there a template I've missed?
ATL has an IDispatchImpl
class.
精彩评论