Solved

ActiveX License, HOWTO

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 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