IsDateValid always returns TRUE

Hi,

I'm trying to set up verified trials. I've created a trial expired feature, read the date and send to IsDateValid. The problem is no matter what date I send I get a TRUE response.

bool stillInTrial = IsDateValid(featureValue, TA_HAS_NOT_EXPIRED);

Any ideas what might be wrong?

If you're using C/C++ then that's not the correct code at all. All TurboActivate / TurboFloat functions return an HRESULT. See TurboActivate.h for the particular success / failure codes.

Are you using C or C++? if so, then this is the correct code:

HRESULT  hr = IsDateValid(featureValue, TA_HAS_NOT_EXPIRED);bool stillInTrial = hr == TA_OK;

Using C++, I think that was it, thanks!