Solved

ActiveX License, HOWTO

Posted on 1998-06-21
5
168 Views
Last Modified: 2010-05-03
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?
0
Comment
Question by:redbaron082997
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
altena earned 50 total points
Comment Utility
Correct answer: Use IClassFactory2
Its just that I have no clue how to do that in VB, sorry.

Simple workaround: Have your control check for the presence of a licanse file at startup. If it is there, no nag screens.

Good Luck.
0
 
LVL 1

Author Comment

by:redbaron082997
Comment Utility
How do you check for the license? what is that file called? Does anyone know how to do this in VB?
0
 
LVL 3

Expert Comment

by:altena
Comment Utility
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.
0
 
LVL 1

Author Comment

by:redbaron082997
Comment Utility
I have not been able to find any documentation on the lClassFactory2. I searched support.microsoft.com for it, and nada. Any suggestions?

0
 
LVL 3

Expert Comment

by:altena
Comment Utility
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.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now