How to Implement multiple dual interfaces?
Submitted by: AdministratorWe can implement a dual interface using the IDispatchImpl
class, which provides a default implementation of the
IDispatch methods in a dual interface. For more information
To use this class:
Define your dual interface in a type library.
Derive your class from a specialization of IDispatchImpl
(pass information about the interface and type library as
the template arguments).
Add an entry (or entries) to the COM map to expose the dual
interface through QueryInterface.
Implement the vtable part of the interface in your class.
Ensure that the type library containing the interface
definition is available to your objects at run time.
Submitted by: Administrator
class, which provides a default implementation of the
IDispatch methods in a dual interface. For more information
To use this class:
Define your dual interface in a type library.
Derive your class from a specialization of IDispatchImpl
(pass information about the interface and type library as
the template arguments).
Add an entry (or entries) to the COM map to expose the dual
interface through QueryInterface.
Implement the vtable part of the interface in your class.
Ensure that the type library containing the interface
definition is available to your objects at run time.
Submitted by: Administrator
Read Online Active Template Library (ATL) Job Interview Questions And Answers
Top Active Template Library (ATL) Questions
☺ | Which ATL Classes Facilitate ActiveX Control Containment? |
☺ | What are the reasons an ATL server might fail to register? |
☺ | How to Implement multiple dual interfaces? |
☺ | Tell me how do you like to go up in a swing? |
☺ | What problems might be encountered when using _ATL_MIN_CRT? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |