Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Help with licencing and installer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help with licencing and installer

 Post Reply Post Reply
Author
Message
glennj View Drop Down
Newbie
Newbie


Joined: 07 February 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote glennj Quote  Post ReplyReply Direct Link To This Post Topic: Help with licencing and installer
    Posted: 24 February 2006 at 7:57am

Hi

I'm running VB.Net 2003 and have created an application using these ActiveX controls. I now want to distribute the application but am having some problems.

I make an installer using Visual Studio and it installs fine on my test PC, but when I try to run the program it errors going on about licencing.

Do I need to include the licences inside the program? If so, can someone provide an example of how best to do this (in VB.Net)?

Also, my installer includes not only the OCX files for the components, but also the DLL's... should it need the DLL's or not?

Many thanks

Back to Top
glennj View Drop Down
Newbie
Newbie


Joined: 07 February 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote glennj Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2006 at 9:09am

Ok, I've got this working finally!

Turns out I was doing two things wrong...

1) The OCX components should have been set to "Self Register" (vsdrfCOMSelfReg)

2) I needed to include the licence in the program... example as follows for those also try to do this.

----------------------------------

Public CalendarGlobalSettings As XtremeCalendarControl.CalendarGlobalSettings

Public CommandBarsGlobalSettings As XtremeCommandBars.CommandBarsGlobalSettings

Public DockingPaneGlobalSettings As XtremeDockingPane.DockingPaneGlobalSettings

Public PropertyGridGlobalSettings As XtremePropertyGrid.PropertyGridGlobalSettings

Public ReportControlGlobalSettings As XtremeReportControl.ReportControlGlobalSettings

Public ShortcutBarGlobalSettings As XtremeShortcutBar.ShortcutBarGlobalSettings

Public SuiteControlsGlobalSettings As XtremeSuiteControls.SuiteControlsGlobalSettings

Public TaskPanelGlobalSettings As XtremeTaskPanel.TaskPanelGlobalSettings

#Region " Windows Form Designer generated code "

Public Sub New()

MyBase.New()

'Register Components

CalendarGlobalSettings = New XtremeCalendarControl.CalendarGlobalSettings

CalendarGlobalSettings.License = ID.CJ_LIC_1

CommandBarsGlobalSettings = New XtremeCommandBars.CommandBarsGlobalSettings

CommandBarsGlobalSettings.License = ID.CJ_LIC_2

DockingPaneGlobalSettings = New XtremeDockingPane.DockingPaneGlobalSettings

DockingPaneGlobalSettings.License = ID.CJ_LIC_3

PropertyGridGlobalSettings = New XtremePropertyGrid.PropertyGridGlobalSettings

PropertyGridGlobalSettings.License = ID.CJ_LIC_4

ReportControlGlobalSettings = New XtremeReportControl.ReportControlGlobalSettings

ReportControlGlobalSettings.License = ID.CJ_LIC_5

ShortcutBarGlobalSettings = New XtremeShortcutBar.ShortcutBarGlobalSettings

ShortcutBarGlobalSettings.License = ID.CJ_LIC_6

SuiteControlsGlobalSettings = New XtremeSuiteControls.SuiteControlsGlobalSettings

SuiteControlsGlobalSettings.License = ID.CJ_LIC_7

TaskPanelGlobalSettings = New XtremeTaskPanel.TaskPanelGlobalSettings

TaskPanelGlobalSettings.License = ID.CJ_LIC_8

 

'This call is required by the Windows Form Designer.

InitializeComponent()

----------------------------------

Where ID.CJ_LIC_1 etc are your licence strings..

Glenn

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.