Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ActiveX License, HOWTO

Posted on 1998-06-21
5
Medium Priority
?
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
altena earned 150 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

610 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