After I make the call to Sherif1.CheckLicence, with the autotrial mode set to false, and the user clicks the "Cancel" button on the authorization screen the program is activated anyway. I notice this is the case on your demo program as well. How do I trap on that condition and not allow the program to become active? I am developing a VB application using the Automatic mode ActiveX control - do I have to call RegisterLicence? Where is licence information stored if RegisterLicence is not called? The user requires a licence key in order for the application to work at all. Therefore, do I only need Auto Authorize checked for the Automatic mode to work? Assuming that I only have Auto Authorize checked, which OnXXXXX events do I need to handle? I think I only need to handle OnError, OnProductNotAuthorized and OnProductNotLicensed. Please confirm. How do I implement unit metering using the ActiveX control? RequestLicenceUnits(UnitsReserved As long, byref UnitsGranted as long,
To request a valid licence and reserve a number of units to run the application. AccessKey returns the feature access level defined by the licence.
UpdateLicenceUnits(UnitsReserved As long, UnitsConsumed As long,
To update the licence on heartbeat with the number of units consumed. In addition, to modify the number of units the application wants to reserve.
ReleaseLicenceUnits(UnitsConsumed As long) As long
If there is no units left, the error code "SLS_E_LICENCE_EXHAUSTED" will be returned by RequestLicenceUnits.
|