I´m using the same constructor for the Form1 as the sample for LexActivator C#
I added a new button for the offline activation, but I´m getting the status==6, invalid product key
///
/// Offline Aktivierung
///
///
///
private void button1_Click(object sender, EventArgs e)
{
int status;
status = LexActivator.SetProductKey(productKeyBox.Text);
if (status != LexActivator.LA_OK)
{
this.statusLabel.Text = "Error setting product key: " + status.ToString();
return;
}
LexActivator.SetExtraActivationData(“sample data”);
status = LexActivator.GenerateOfflineActivationRequest("C:/Users/Freddy/Documents/Visual Studio 2015/Projects/Cryptlex/LexActivator-Win/API/C#/bin/Debug");
if (status != LexActivator.LA_OK)
{
this.statusLabel.Text = "Error activating the product: " + status.ToString();
return;
}
else
{
this.statusLabel.Text = "Activation Successful";
this.activateBtn.Text = "Deactivate";
this.activateTrialBtn.Enabled = false;
}
}