View previous topic :: View next topic |
Author |
Message |
WoodTrax
Joined: 11 Sep 2007 Posts: 8
|
Posted: Tue Sep 11, 2007 3:05 pm Post subject: VB.Net Compact Framework Newbie wanting to use ILS |
|
|
Hello
I purchased the Infralution Licensing System based on a review I read in a Newsgroup. According to everything I read your product will do what I want.
I am developing my first commercial application for the Pocket PC, using VB.Net 2005 Compact Framework 2.0. I have completed develpment of my application and now want to implement your ILS.
I am totally confused. I do not know how to proceed. Maybe I can tell you what I want then you can point me in the right direction.
Form1 is my main startup form at app start. I want the user to be prompted by a message that their product is not registered and they are on X day of a 15 day trial. I want to use a registration form like the one you provide in the source code example.
My intention is to provide 100% functionality to the user during their testing.
So where do I start? Go easy on my as I am a newbie with respect to .Net...in other words dumb it down as much as possible, providing examples where possible.
Can I copy and paste the code into my app from your example?
Thank you
Todd
Last edited by WoodTrax on Tue Sep 11, 2007 4:29 pm; edited 1 time in total |
|
Back to top |
|
|
WoodTrax
Joined: 11 Sep 2007 Posts: 8
|
Posted: Tue Sep 11, 2007 3:12 pm Post subject: Hi again |
|
|
I am attempting to teach this to myself while awaiting a response. I got pigeon-holed first thing.
I tried to add the following:
Imports Infralution.Licensing
but it throws an error that it can not be found. So I guess this is a good starting point
Todd |
|
Back to top |
|
|
WoodTrax
Joined: 11 Sep 2007 Posts: 8
|
Posted: Tue Sep 11, 2007 4:26 pm Post subject: Errors in your example with respect to CF 2.0 |
|
|
Hi
I am plodding through this trying to teach it to myself. Progress has been limited thus far, due in part to errors in the code provided in the 'start here' section of the help file.
For example this:
Public Sub New()
MyBase.New()
InitializeComponent()
Dim sProvider as new EncryptedLicenseProvider()
Dim sLicense as EncryptedLicense = sProvider.GetLicense(LICENSE_PARAMETERS, LICENSE_FILE)
If sLicense is Nothing Then
Dim myForm As New LicenseInstallForm
sLicense = myForm.ShowDialog("MyControl", "www.mycompany.com", LICENSE_FILE)
If sLicense is Nothing then
MessageBox.Show("Running in Evaluation Mode", "Unlicensed Application")
End If
End If
End Sub
should be this:
Public Sub New()
MyBase.New()
InitializeComponent()
Dim sProvider As New Infralution.Licensing.CF.EncryptedLicenseProvider
Dim sLicense As Infralution.Licensing.CF.EncryptedLicense = sProvider.GetLicense(LICENSE_PARAMETERS, LICENSE_FILE)
If sLicense Is Nothing Then
Dim myForm As New LicenseInstallForm
sLicense = myForm.ShowDialog("MyControl", "www.mycompany.com", LICENSE_FILE)
If sLicense Is Nothing Then
MessageBox.Show("Running in Evaluation Mode", "Unlicensed Application")
End If
End If
End Sub
Even so there is still a problem with this line in compact framework:
sLicense = myForm.ShowDialog("MyControl", "www.mycompany.com", LICENSE_FILE)
It throws and error as follows:
overload resolution failed because no accessible 'ShowDialog' accepts this number of arguments.
Please help me with this ASAP so I can complete my project.
Thank you
Todd |
|
Back to top |
|
|
WoodTrax
Joined: 11 Sep 2007 Posts: 8
|
Posted: Tue Sep 11, 2007 4:29 pm Post subject: Re: Hi again |
|
|
WoodTrax wrote: | I am attempting to teach this to myself while awaiting a response. I got pigeon-holed first thing.
I tried to add the following:
Imports Infralution.Licensing
but it throws an error that it can not be found. So I guess this is a good starting point
Todd |
I overcame this by adding refernce to the dll...like I said I am just learning.
Todd |
|
Back to top |
|
|
WoodTrax
Joined: 11 Sep 2007 Posts: 8
|
Posted: Tue Sep 11, 2007 5:53 pm Post subject: Re: Errors in your example with respect to CF 2.0 |
|
|
WoodTrax wrote: | Hi
I am plodding through this trying to teach it to myself. Progress has been limited thus far, due in part to errors in the code provided in the 'start here' section of the help file.
For example this:
Public Sub New()
MyBase.New()
InitializeComponent()
Dim sProvider as new EncryptedLicenseProvider()
Dim sLicense as EncryptedLicense = sProvider.GetLicense(LICENSE_PARAMETERS, LICENSE_FILE)
If sLicense is Nothing Then
Dim myForm As New LicenseInstallForm
sLicense = myForm.ShowDialog("MyControl", "www.mycompany.com", LICENSE_FILE)
If sLicense is Nothing then
MessageBox.Show("Running in Evaluation Mode", "Unlicensed Application")
End If
End If
End Sub
should be this:
Public Sub New()
MyBase.New()
InitializeComponent()
Dim sProvider As New Infralution.Licensing.CF.EncryptedLicenseProvider
Dim sLicense As Infralution.Licensing.CF.EncryptedLicense = sProvider.GetLicense(LICENSE_PARAMETERS, LICENSE_FILE)
If sLicense Is Nothing Then
Dim myForm As New LicenseInstallForm
sLicense = myForm.ShowDialog("MyControl", "www.mycompany.com", LICENSE_FILE)
If sLicense Is Nothing Then
MessageBox.Show("Running in Evaluation Mode", "Unlicensed Application")
End If
End If
End Sub
Even so there is still a problem with this line in compact framework:
sLicense = myForm.ShowDialog("MyControl", "www.mycompany.com", LICENSE_FILE)
It throws and error as follows:
overload resolution failed because no accessible 'ShowDialog' accepts this number of arguments.
Please help me with this ASAP so I can complete my project.
Thank you
Todd |
getting further along with this now. The above is easily fixed by adding Imports Infralution.Licensing.CF
So far I have managed to register the product and have it check to see if it is licensed or not.
Still not 100% sure I understand this process but it seems to be working.
Personally I think you should add a section that shows, by example, step-by-step, how to implement this in our solutions.
Thanks for this product by way.
Todd |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Sep 12, 2007 1:35 am Post subject: |
|
|
The code in the "Getting Started" section of the online help is for standard Windows Forms applications. See the help section "Using the Compact Framework Licensing" for details and code samples for Compact Framework. _________________ Infralution Support |
|
Back to top |
|
|
WoodTrax
Joined: 11 Sep 2007 Posts: 8
|
Posted: Thu Sep 13, 2007 9:14 am Post subject: |
|
|
Thanks |
|
Back to top |
|
|
|