11.07.2015 Views

Download this PDF file - Riviste

Download this PDF file - Riviste

Download this PDF file - Riviste

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Rosca D. – Bănică L. – ActiveX - An Internet Strategy for Applications Development- Reference Counting: The technique by which an object keeps track of its reference instancecount. The instance of the object class should be deleted when there is no reference to <strong>this</strong>instance.- QueryInterface Method: It is called with the Interface ID (IID) to which the caller wants apointer. Can be generated by Guidgen.exe by choosing DEFINE_GUID(...) format.QueryInterface enables navigation to other interfaces exposed by the object.- IClassFactory Interface: This interface must be implemented for every object class. Itprovides functionality to create an instance of the object class with CLSID and locks the objectserver in memory to allow creation of objects more quickly.- Marshaling: The mechanism that enables objects to be used across process and networkboundaries, allowing interface parameters for location independence by packing and sendingthem across the process boundary. Developers have to create proxy/stub dll for the custominterfaces if exist. The custom interface has to be registered in the system registry.- Aggregation: COM object supports an interface by including another object that supports thatinterface. The containing object creates the contained object as part of its own creation. The resultis that the containing object exports the interface for the contained object by not implementingthat interface.- Multiple Inheritance: A derived class may inherit from multiple interfaces.5 – ActiveX Object ModelThere are two primary pieces to the ActiveX Object Model: the Microsoft HyperText MarkupLanguage (HTML), Viewer component (MSHTML.dll) object and the Web Browser Control(shdocvw.dll). Both are in-process (DLL-based) COM objects.classes.All interfaces defined in the ActiveX Object Model are "dual" interfaces. A "dual" interfacemeans that the objects inherit from IDispatch and IUnknown. They can be used by clientapplication at "early-bind" via Vtable and at "late bind" via OLE automation controller by usingIDispatch::GetIdsOfNames and IDispatch::Invoke.vtable).MSHTML is the HTML viewer part of Microsoft Internet Explorer 3.0. It is an in-processCOM server and a Document Object. It can be hosted in OLE Document Object containers.MSHTML implements the OLE Automation object model described in the HTML ScriptingObject Model. With <strong>this</strong> object model, you can develop rich multimedia HTML content.VBScript running inline in the HTML and Visual Basic 4.0 running external to the HTML canuse the object model.- © 2007 p. 119

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!