Skip to main content

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

  • February 15, 2013
  • 0 replies
  • 0 views

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