

So we need to create the pascal bindings for the ActiveX object. Run the program preferably outside the IDE.Įarly binding means that all interfaces are known to the compiler. Note that VLC and gdb seem to cause some problems (slow start-up in the best case, hangs or crashes).

References to objects are stored as dispinterfaces in variants and the methods and properties of the objects are "discovered" at run-time. Late binding refers to the fact that the interfacing to the object is all done at run-time. Event handlers can be assigned from the IDE.Īlthough the theory is quite complex, late binding is the fastest way to get an ActiveX component running. This also uses early binding and has full event support. create a new component from the type library or the object and drop that new component on the form.


Suitable for early binding and with event support. import the ActiveX type library, drop the TActiveXContainer on a form, instantiate the ActiveX object and assign it to the ComServer property.Suitable for late binding and without direct event support. drop the TActiveXContainer on a form and assign the ActiveX ClassName to the OleClassName property.There are 3 different ways of using ActiveX components: When the installation succeeds, a new 'ActiveX' tab is added to your component palette. Alternatively, open the LazActiveX.lpk package and click on 'Use >'/'Install'. ' window, select LazActiveX 0.1, click 'Install Selected' and then 'Save and Rebuild IDE'. Importing type libraries only works on Windows XP or newer.įrom the 'Package'/'Install/Uninstall Packages. Warning: LazActiveX needs FPC newer than 2.6.1.
