Please there is someone who can help me ?

I have urgent necessity to integrate a turboactivate API in my windev application.

Thanks for All

We have a couple of customers using TurboActivate & TurboFloat with WinDev, but we don't have a pre-built example to share with you right now. Here are a couple of resources for you:

WDAPI: Converting a declaration of C function or structure

API (Function)

Also, use the TurboActivate.h file in the main TurboActivate package (in the API\C folder). That has the function definitions you'll be using. Also see Using TurboActivate with C, C++, and Objective-C.

Hi Wyatt,

my only problem is to retrieve the number of days through the function TrialDaysRemaining ().

for the rest I configured everything a WebAPI and payment and the control of the function isgenuineEx() and all works well.

The WDAPI is not a tool but only a database to see the WINAPI32 dll to WLANGAGE, is not possible to convert others fonctions.

Ok good !!! Thanks for your support in small steps I will find a solution

Regards, 😉

Hi there,

Here is a simplified example of what you are looking for:

CONSTANT C_TurboActivateDLL = "TurboActivate.dll" TA_OK = 0x00000000END

TrialDaysRemaining is API DescriptionTrialDaysRemaining.DLLName = C_TurboActivateDLLTrialDaysRemaining.FunctionName = "TrialDaysRemaining"TrialDaysRemaining.Parameter[1].Type = apiUnicodeString //STRCTYPE versionGUIDTrialDaysRemaining.Parameter[2].Type = apiInt_4 //uint32_t * DaysRemainingTrialDaysRemaining.ReturnType = apiInt_4

// Example of use :

nDays is intnResult = TrialDaysRemaining("YourVersionGUIDFromTheDashboard",&nDays)

IF nResult = TA_OK THEN RESULT nDaysELSE RESULT 0END

Best regards,Alexandre Leclerc

Hi Alexander,

Very Thanks for your help !!

I have write this procedure:

//------------API per usare la funzione trial---------------------------------------trial_use est une Description d'APItrial_use.NomDLL = "TurboActivate.dll"trial_use.NomFonction = "UseTrial"trial_use.TypeRetour = apiEntierSystetrial_use.Paramre[1]..Type=apiChaeUnicode//-----------API per sapere quanti giorni restano di trial---------------------------p_trial_days est un entiergiorni est un entiertrial_days est une Description d'APItrial_days.NomDLL = "TurboActivate.dll"trial_days.NomFonction = "TrialDaysRemaining"trial_days.Paramre[1]..Type=apiChaeUnicodetrial_days.Paramre[2]..Type=apiEntierSystetrial_days.TypeRetour = apiEntierSyste//-------API per controllare via internet se l' applicazione attivata o meno------controllo_attivazione est un entier systeisActivate est une Description d'APIisActivate.NomDLL = "TurboActivate.dll"isActivate.NomFonction = "IsGenuine"isActivate.TypeRetour = apiEntierSysteisActivate.Paramre[1]..Type=apiChaeUnicode

controllo_attivazione=API(isActivate,VersionGUID)

SELON controllo_attivazione CASE 0 //' activated //IsActivated = True frm_limelm.Bouton1..Visible=Faux frm_limelm.txt_nome..Visible=Faux frm_limelm.txt_cognome..Visible=Faux frm_limelm.lbl_attivato="OK Prodotto Attivato" CASE 7 //' TA_E_GUID Info("GUID errato") CASE 8 //' TA_E_PDETS Info("Non riesco a caricare il file dat") CASE 11 //' TA_E_COM Info("inizializzazione errata") AUTRE CAS //IsActivated = False frm_limelm.Bouton1..Visible=Vrai frm_limelm.txt_nome..Visible=Vrai frm_limelm.txt_cognome..Visible=Vrai frm_limelm.lbl_non_attivato="Prodotto NON Attivato" p_trial_days = trial_days(VersionGUID,&giorni) IF p_trial_days = TA_OK THEN frm_limelm.lbl_giorni_restanti = giorni ELSE RESULT 0 END

FIN

The procedure function well,the turboactivate api retieve if my application is activated or not, but the demo days returned 0 but in my control panel i have set 4 days demo !Why ?

Best Regards,

If you mess around with the date/time on the system TurboActivate looks at it and says "hey, the user screwed around with the time. I'm setting the trial days to 0".