IDispatch interface

Tech-Archive recommends: Fix windows errors by optimizing your registry



How do I add a IDispatch interface support in an ATL component?
I use ATL Simple Object with a customer interface and then change it to
dispinterface. But it would not compile with the following error:
error C2504: 'IMyDispinterface' : base class undefined

.