[Lazarus] OCX / ActiveX

Marco van de Voort marcov at stack.nl
Tue Apr 14 23:18:01 CEST 2009

On Mon, Apr 13, 2009 at 10:12:49AM +0200, Robert wrote:
> is there any possibility to use an ActiveX component from Lazarus 
> on Windows - at least low level. Any HOW-TO / example?
> Its about a hardware driver which is only accessible through an 
> ActiveX DLL.

2.3.1 is able to start and instrument word or IE using dispatch interfaces.

See examples in winunits-base/examples.

I don't know the exact status of 2.2.4 in this regard. A lot of the windows
headers parts are merged, but I don't know how much of the
languag and objpas/variants units parts are merged.

For 2.2.4 I'd try to get the IDL description of the OCX, and then translate
it to FPC taking winunits-base units (like shlobj) as an template.

There are no FPC tutorials yet, but this is fairly close to how Delphi does
it, so general Delphi tutorials should be fine.

More information about the Lazarus mailing list