Advertisement
ASP_Volume3 OLE/ COM/ DCOM/ Active-X #45573

How to make an ActiveX control (OCX) Shareware.

The biggest problem with trying to make ActiveX controls shareware or trialware is knowing when the control is in the IDE. This is a demonstration on how to use the property bag to make a control shareware.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
The biggest problem with trying to make ActiveX controls shareware or trialware is knowing when the control is in the IDE. All of the methods require knowing which IDE you are in. Each IDE can have a different name, executable and class. This method allows you throw the NAG screen at the proper time regardless of the IDE. Use the property bag! Set up two properties called UserName and SerialNumber. If these properties are not populated with the proper information, you are in trial mode. The attached code demonstrates how to set up a control using the property bag and a license file and you never have to worry about the IDE again.
Original Comments (3)
Recovered from Wayback Machine