ActiveX/OCX Wrapper
Description

This library enables one to autogenerate with a single message the Smalltalk interface classes for an ActiveX/OCX control, its accessor methods, and event classes. This wrapper eliminates the time wasted creating the classes manually and this task's potential errors.

Files

OCX.SLL  OCX wrapper library
OCX.ST Source files
OCX Doit.txt Demo expressions

Requirements

VS/VSE 3.1.2 for Win32s. Its minimum required libraries are:
 
ARBase.sll Alejandro Reimondo base components SLL 
ARPatchs.sll Patches and bug fixes
vreg31w.sll Registration Database Support
voleb31w.sll  OLE COM Support
volec31w.sll OLE Container Support
volex31w.sll OLE Control Support

The following additional libraries should be loaded to be able to use the 'browseClass' option in the OCX Test window:
 
ARAddIns.sll SelfDefinedStructures Support
ARMisc.sll Miscellanous additions
ARDev.sll Development Tools

Installation

Ensure the libraries above are loaded in the VS/VSE library directory or a directory that appears in the Windows PATH statement.and evaluate:

SmalltalkLibraryBinder bindTo:'OCX'

The OCX.sll library will automatically bind the minimum required libraries if they have not already been bound to the image.  Evaluate the following to install all libraries:

#('OCX' 'ARAddIns' 'ARMisc' 'ARDev') do:[:lib|SmalltalkLibraryBinder bindTo: lib].

Examples

Open the file OCX Doit.txt and evaluate the expressions within. An expression that autogenerates Smalltalk classes associated with the Microsoft calendar control and opens a test window appears below.

"Building OCXWrapper for MsCalendar OCX"
OCXFrameworkBuilder buildClassesFor: 'MSCAL.Calendar' mask: 'cal'.

To generate classes for the MSChart control and open a test window evaluate:

OCXFrameworkBuilder buildClassesFor: 'MSChartLib.MSChart' mask: 'chart'.

The first parameter of method #buildClassesFor:mask: should be the PROGID of the OCX control and the second parameter is the prefix to be attached to the names of classes that will be autogenerated as subclasses of OCXTest, OCXEvent, and OCXError.

Additional info

Classes for the Adobe® Acrobat reader library, ZIP archive interface, and Spell Checker and Thesaurus libraries were created by and use the OCX wrapper.

Contact

Alejandro F. Reimondo
Amenabar 3476 Piso: 2 Dto: B.
Ciudad de Buenos Aires.
Argentina.
Tel: (54)-1-703-5586.
aleReimondo@sugarWeb.com
http://www.sugarweb.com


Links to:
The ObjectShare web site
VisualSmalltalk Product Support
ObjectShare's Online Documentation Site