Skip to main content

Problem:

How to pass a Picture Object to an Active X control?

Resolution:

The control will expect an IPicture interface.

You can pass this from COBOL using the GUI and OLE Class libraries as follows:-

- Create an OLEPicture object from our class library (perhaps the fromICON or fromBitmap)

- use GetDomainObject to get an object reference

- pass that object reference as the parameter

This should then pass the Picture to the control as expected.

Old KB# 4326