I have been trying to integrate your licence system into my c# winforms .net Project. I created a product and guid from https://wyday.com/limelm/dashboard/ and download the dat file. But I suppose I just need to copy both debug and relase folders turboActivate dll, dat and exe files and add turboActivate.cs file into my Project.
So I did all of these thing but first there were some issue in ReVerifyNow frmReverify = new ReVerifyNow(ta, DaysBetweenChecks, GracePeriodLength); line. After I attached the form and cs it fixed but I dont think I did right thing. Now ShowTrial(!isGenuine); line has some issue (The name 'ShowTrial' does not exist in the current context).
I am lost in this article https://wyday.com/limelm/help/using-turboactivate-with-csharp/ and this is not helpful that much for me becuase I cannot understand all of the context.
Other problem is in if (!isGenuine && ta.IsActivated()) line because when I debug the code i isGenuine false but a.IsActivated() true but it actually false but it gets true somehow.
readonly TurboActivate ta;
bool isGenuine;
const uint DaysBetweenChecks = 30;
const uint GracePeriodLength = 14;
public loginForm()
{
InitializeComponent();
try
{
ta = new TurboActivate("xyz");
IsGenuineResult gr = ta.IsGenuine(DaysBetweenChecks, GracePeriodLength, true);
isGenuine = gr == IsGenuineResult.Genuine ||
gr == IsGenuineResult.GenuineFeaturesChanged ||
gr == IsGenuineResult.InternetError;
if (!isGenuine && ta.IsActivated())
{
ReVerifyNow frmReverify = new ReVerifyNow(ta, DaysBetweenChecks, GracePeriodLength);
if (frmReverify.ShowDialog(this) == DialogResult.OK)
{
isGenuine = true;
}
else if (!frmReverify.noLongerActivated) // the user clicked cancel and the user is still activated
{
// Just bail out of your app
Environment.Exit(1);
return;
}
}
}
catch (TurboActivateException ex)
{
// failed to check if activated, meaning the customer screwed something up
// so kill the app immediately
MessageBox.Show("Failed to check if activated: " + ex.Message);
Environment.Exit(1);
return;
}
ShowTrial(!isGenuine);
}
A lot more information is needed. But as we said in the email you also sent us, just start with the example C# app with your GUID and run though everything first. Activate it, play with the code, understand it. Understand how it relates to the article (they're written for eachother so it'll explain all of the context).