Using ActiveX Controls

The dialog routines support the use of ActiveX controls. That is, the dialog routines can act as an ActiveX control container. The FXPLORER and MMPLAYER samples in the ...\SAMPLES\DIALOG folder are examples of using an ActiveX control in a Visual Fortran application.

Using an ActiveX control in a dialog box requires four steps discussed in the following sections:

  1. Using the Resource Editor to Insert an ActiveX Control discusses using the resource editor to insert the ActiveX control into the dialog box.
  2. Using the Fortran Module Wizard to Generate Code discusses using the Fortran Module Wizard to generate a module that allows you to use the methods, properties, and events of the ActiveX control from Fortran.
  3. Adding Code to Your Application discusses adding code to your application to manipulate the ActiveX control and respond to control events.
  4. Target System Requirements describes how to ensure that the ActiveX control and the dialog procedure ActiveX container DLL are present and registered on the target system.