Your post has WPF at the end of it so I am assuming that this is a WPF managed COBOL project, correct? Most vendors these days provide a .NET equivalent control to any ActiveX or COM control that they produce. You do not mention who the vendor is but if this is the case then you should really be using the .NET version of the control in a managed code environment as ActiveX controls are really based on unmanaged technology. However, you can incorporate ActiveX/COM controls into a managed project. After registering the ActiveX control on your system you can add a project reference to it by right-clicking on the References folder and selecting Add Reference and then use the COM tab to select your control from the list. You should then be able to instantiate the control and set its properties, invoke its methods etc using OO-COBOL syntax.
↧