Licensing for ActiveX DLL's and EXE's 
Author Message
 Licensing for ActiveX DLL's and EXE's

I know when you create a User Control (OCX) you can choose to have a license
key associated with it to prevent users of your program from using the
control in the VB IDE at design time.

I need to have the same protection for an ActiveX DLL I wrote. Is there a
way to prevent user's from setting a reference to your DLL and using it in
their own programs?

I created a work around for now by making the class (which I will call Class
A) PublicNotCreatable.  I added a second PublicMultiUse class (Class B) that
is used ONLY to create an instance of Class A.  Class B has a method

    Sub ClassA_Create(PermissionID As Long)

that willl only succeed if the calling application passes in a long integer
of the correct value.  Since I am the only one who knows the correct value,
I would like to think that I am the only one who can write a program that
can create an instance of Class A.  So even if a user set a reference to my
DLL in his own VB program, he cannot create an instance of Class A.  This
still does not prevent the user from viewing the methods, events and
properties of Class A from the VB Object Browser.  But I guess there is no
harm there if he can't use the DLL.

It sure would be easier if there was a licensing option for ActiveX DLL's
and EXE's.  Is there something I am missing?

Chis



Fri, 12 Oct 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ActiveX dll's and EXE's

2. ActiveX dll's and EXE's

3. Extracting Icons from Exe's Dll's Ico's into a ListImage Control

4. What's the differance between a ActiveX.dll and regular dll's

5. ActiveX EXE 'Permission Denied'

6. Help:Using VB Funtions In Access With DLL's, EXE's

7. Help:Using VB Funtions In Access With DLL's, EXE's

8. Compiled Dll's Exe's and references

9. Including dll's and ocx's in VB exe file

10. Help:Using VB Funtions In Access With DLL's, EXE's

11. Visual Basic 5.0 .EXE's and the various DLL's it needs

12. EXE's Vs DLL's Naming Problem

 

 
Powered by phpBB® Forum Software