Add the TcEvtCfgEditor ActiveX into an Dialog

To insert the TcEvtCfgEditor into an dialog based MFC Application simply follow this step by step tutorial.

  1. Start MSVisual Studio 6.
  2. Create a new dialog based MFC Application.
  3. In design mode rightclick on the dialog resource and choose 'Insert ActiveX Control'.
  4. Add the TcEvtCfgEditor ActiveX into an Dialog 1:
  5. Select the Beckhoff EvtCfgEditor and place it on your Dialog.
  6. Open the Class Wizzard and switch to the 'Member Variables' Tab
  7. Select IDC_EVTCFGEDITOR1 and click on AddVariable
  8. In the following Dialog choose OK to get an automaticly generated wrapper class
  9. Add the TcEvtCfgEditor ActiveX into an Dialog 2:
  10. In the following Dialog keep all items selected and choose OK.
  11. Now enter a name for the member variable.
  12. The ActiveX is ready to use.
    Call GetConfiguration to get access to the underlying Configuration Object

 

Language / IDE

Source code

Visual Studio 6 C++

Sample04.zip (in preparation)