I am trying to test all aspects of version 3 in my application and having trouble retrieving the trial ID
I have a verified trial, which I have confirmed on the dashboard.
The following syntax returns an empty string for trialID
StringBuilder ID = new StringBuilder();//these three lines get the trialID
LexActivator.GetTrialId( ID, 40);
string trialID = ID.ToString();
I changed the code slightly as follows to make syntax comply and debugging easier
string trialID = “”;
StringBuilder ID = new StringBuilder(256);
int status = LexActivator.GetTrialId(ID, 256);
if ( status == LexActivator.StatusCodes.LA_OK)
{
trialID = ID.ToString();
}
status returns 0 ie LA_OK but ID and trialID is still an empty string ie “”.