Developers Workshop to COM and ATL 3.0

 < Free Open Study > 


Objectives:

The vTable COM interface is a wonderful thing. As you have already seen, the popular languages of our time (VB, Java, C++) all have the ability to work with your COM objects and access their functionality using custom vTable interfaces. This was not always the case, however. Historically speaking, VB was unable to work with custom vTable interfaces, and the only way in which your object's functionality could be used was through a standard COM interface named IDispatch.

These days, the only COM-aware languages that must work with an object using IDispatch are scripting environments such as VBScript and JScript. In this light, we may call a COM object supporting IDispatch a scriptable object, although historically speaking IDispatch-based objects are termed automation objects. This chapter examines how to create scriptable COM objects and a number of late bound clients.


 < Free Open Study > 

Категории