Recently received a small project that asked to write an ActiveX control embedded in IE run. Checked the information, Delphi required to make the VCL control, and then build the ActiveX control from the VCL control; VC's got all the vc6.0. After the wizard has created the code, use the Class Wizard to add the properties and methods of the control:
Adding methods and properties to the Automation option automatically generates the appropriate code in the interface and Control source code, and if the private (custom) method does not need to be exposed to the interface, you can add the build manually.
However, in the VS2012, the Class wizard does not have this Automation tab, which can only add variables and method functions, and also can not be exposed to the interface, manually add the mapping is too troublesome. So I checked with the help of VS.
File, finally found the answer: Find the Class View toolbox, you can see the app, CTRL, PropPage and IDL interface definitions, and then the second item of interface definition Right-click can find "Add properties" and "Add Method",
These two are the Lord's, and here is the equivalent of VC6 automation.
Previous image
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
To create an ActiveX control using VS2012