Solved

ActiveX License, HOWTO

Posted on 1998-06-21
5
171 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

838 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