Solved

ActiveX License, HOWTO

Posted on 1998-06-21
5
169 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
ID: 1463903
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
ID: 1463904
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
ID: 1463905
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
ID: 1463906
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
ID: 1463907
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

920 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

12 Experts available now in Live!

Get 1:1 Help Now