Link to home
Start Free TrialLog in
Avatar of redbaron082997
redbaron082997

asked on

ActiveX License, HOWTO

How do you create a licnse for an activex control? I have an activeX control that I made, and it is working. The next step is to create an unlicensed edition, that shows a nag box, and a licensed version that does not. How is this accomplished?
ASKER CERTIFIED SOLUTION
Avatar of altena
altena

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of redbaron082997
redbaron082997

ASKER

How do you check for the license? what is that file called? Does anyone know how to do this in VB?
a license file is just an ordinary text file.

You try to read it when your control starts up.
If the file isn't there, you will receive an error that you
catch in your on error handler.
I have not been able to find any documentation on the lClassFactory2. I searched support.microsoft.com for it, and nada. Any suggestions?

You cannot implement IClasfactory2 from VB. Its a c++ interface.
Use the file technique i described to you.

support is a bad place to look.
Try
www.microsoft.com/msdn

you can find it all in the online library.