After invoking the server activation process (Which appears to have worked)The following is executed:
This is the "Continue Running Logic we are using":
bool ContinueRunning(){ if( TA_OK == m_TA.IsActivated( m_Data.VersionGUID() ) ) activated = true; if( !activated ) { if( TA_OK == m_TA.UseTrial() ) { if( TA_OK == m_TA.TrialDaysRemaining( m_Data.VersionGUID(), trialDaysRemaining ) ) { trialcheck = true; } } } if( activated ) fContinueRunning = true; else { if( trialcheck ) { if( trialDaysRemaining > 0 ) { fContinueRunning = true; } } }
//////////////////////////////////////////////////////////////////////////////////// // Check for an expiration date QString timeLimitedValue; bool timeLimited = false; if( TA_OK == m_TA.GetFeatureValue( m_FeatureTimeLimited, timeLimitedValue ) ) { if( timeLimitedValue != "0" ) { timeLimited = true; } } QString expirationDate; bool expired = false; if( TA_OK == m_TA.GetFeatureValue( m_FeatureExpiration, expirationDate ) ) { if( TA_OK != m_TA.IsDateValid( expirationDate ) ) { expired = true; } } if( timeLimited && expired ) { fContinueRunning = false; } return fContinueRunning;}
What have I missed ?
Thanks,Paul