V.2.9
Activation

In order to activate the library you need to:

a) purchase it at this address:
http://www.hexagora.com/reg_step1.asp

b) after the activation code has arrived you need to invoke the "ActivateLibrary" 
method from the clsCommonWrapper class before any other thing.

I suggest you to call it in the sub Main() or in the Form_Initialize event of the first form 
of your application.

Update (Jan 08, 2009):
I suggest you to maintain an Instance of the "clsCommonWrapper" class 
always active or you may experience problems after the activation; 
randomly, when the program exits from the "Sub Main()" and there are no 
references to the HexUniControls.ocx library (no controls or classes loaded 
in memory), VB6 unloads the entire .ocx library so you may lose the 
Activation flag (see the correct activation method below):

Example (modMain.bas):

public moWrap As clsCommonWrapper
 'Instance always active
Sub Main()
    Set moWrap = New clsCommonWrapper
    Call moWrap.ActivateLibrary("xxx YourCodeHere xxx")
    
    
'Show the first form of your application here
    MDIForm1.Show
End Sub

Or

public moWrap As New clsCommonWrapper
 'Instance always active
Sub Main()
    Call moWrap.ActivateLibrary("xxx YourCodeHere xxx")
    
    
'Show the first form of your application here
    MDIForm1.Show
End Sub

The code below is WRONG!!! Sometimes the Activation flag is lost when the 
program exits from the Main procedure


Sub Main()
    Dim oWrap As New clsCommonWrapper
    Call oWrap.ActivateLibrary("xxx YourCodeHere xxx")
    
    
'Show the first form of your application here
    MDIForm1.Show
End Sub
http://www.hexagora.com
Tue, 20 Jan 2009 13:05:32 UT
Copyright 2003-10 by Lorenzi Davide