Now!!! Build the project.
And run-it. You will be ask for an exacutable to play the ActiveX. Let’s use the ActiveX Control Test Container

In the ActiveX Control Test Container click “insert new control” from Edit menu and choose from the list our ActiveX (named “EvolActiveXExample1 Control”). You will be seeing a window like this:

From Control menu, “Invoke methods” will bring you to this window.

By changing the Parameter Value to 2 then clicking Set Value and Invoke, you will notice that the background color of the ActiveX has changed.

When you double click the left button you will be seeing in the bottom of the screen:
EvolActiveXExample1 Control: Click

Notes for advanced readers!!!
Using regedit search “EvolActiveXExample1 Control” in the registry. Find for example the uuid. Now compare the uuid with the ones in EvolActiveX.odl.

For examples I have found this 395B…. This uuid is unique, so yours will be different. One information kept in registry is the path to the ocx. To learn more about creating an application that use custom ActiveX controls read this article: http://www.codersource.net/published/view/304/using_custom_activex_control_in_mfc.aspx
By: Dragos BREZOI.
Attachments
Project Files Evol ActiveX Demo