trial not counting down

for some reason trial is not counting down, it stays at 7 days as set up two days later.this happens on osxplease help 🙂

turboactivate.dat is in the same folder with the executable(in its bundle) the remain days trial function gives 7everytime I start it it starts up with 7 days remaining.

Did you call UseTrial()? You have to call that function before you call any other trial function.

this is the code I call 4 times, it returns 7(maximum trial days) on windows it works ok, it goes down, but on mac it stays the same =7

int checklicense(){

HRESULT hr = IsActivated(TA_GUID); cout<<hr<<endl; if (hr == TA_OK) { TCHAR * featureValue;

printf("YourApp is activated! Enable any app features now.\n"); return 1000000; } else // not activated { uint32_t trialDays; cout<<"not activated"<<endl; printf("Not activated: hr = %d\n", hr); //system("pause"); // Start or re-validate the trial if it has already started. // This need to be called at least once before you can use // any other trial functions. hr = UseTrial(TA_SYSTEM);

// Get the number of trial days remaining. hr = TrialDaysRemaining(TA_GUID, &trialDays);

if (hr == TA_OK) { printf("Trial days remaining: %d\n", trialDays); return trialDays; } else { printf("Failed to get the trial days remaining: hr = %d\n", hr); return 99999999; }

} return 0;

}

You're not looking at the return code for UseTrial(). You're writing it to hr, but you're never seeing if UseTrial succeeds. My guess is you're running your app as a regular user and UseTrial() with the TA_SYSTEM flag is failing.

But it's just a guess. Tell me the turn code for UseTrial().

but I thought trialdays remaining() will get it correct anyway?will it not? and if not, is there any reason why?

but I thought trialdays remaining() will get it correct anyway?will it not? and if not, is there any reason why?

It won't if UseTrial() didn't succeed. Check the return code for UseTrial and tell me what it is.

If you want to allow trials without first running the function as an admin then use the TA_USER flag instead of the TA_SYSTEM flag.