Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I'm confused and would like to clarify: - can ocx controls can be accessed (used) from Perl ? how? - what is difference between OLE and ocx controls ? Thanks in advance, Rob.
  • Comment on Using ocx(same as ole?) controls from Perl

Replies are listed 'Best First'.
Re: Using ocx(same as ole?) controls from Perl
by VSarkiss (Monsignor) on Feb 23, 2003 at 18:27 UTC

    Well, OCX used to be (maybe still is) a file extension for files in Win32 and Win16 systems that implemented controls usable in other apps. They were commonly called OCX controls because of the extension. These exposed an interface that was a precursor to COM; later this interface grew into OLE, and later still, ActiveX. To be honest, if there are differences OCX and OLE, I lost track of them -- as far as I know, the difference is simply in the name.

    If this is the OCX you mean, then yes, they can be accessed from Perl, using Win32::OLE and its related modules. (As Dave Roth points out in his very useful site about Perl and Win32, a better name might have been Win32::COM.) I may have some details wrong about which versions preceded and which followed; take a look at that site for more references and info.