TrialDaysRemaining and errocode 29 (0x1D)

We are developing a licensing on top of Ruby (inside the Sketchup tool environment). It is Win7, 64 bit. As we are the developers we got the activate APi to work after a bit of a struggle (as the TurboActivate.h API is different from the python API (no GetHandle API but a SaveCurrentProduct API). Anyway, with that out of the door, we started to test the trial APIs and ran into a major issue which we have been unable to solve for the past few days. I deactivated the license and called UseTrail API. It was OK until I realized it was an unverified trial, as my IP was not coming up on the Trials dashboard on your website. So, I then ran the TurboActivate.exe on my machine and suddenly it became a Verified trial which is good. But here is the problem. After the above step, all calls to UseTrial and TrialDaysRemaining kept giving an error code 29 (0x1D) (which is cannot downgrade) . I tried UseTrial with 0x22 (TA_USER | TA_VERIFIED_TRIAL) and I get errorcode 16 (0x10) . I am unable to get the number of trial days API to return a success. I then installed python and ran the sample code too. Same error as the ruby one. Any help appreciated.

Ok, while I am not sure the reasoning of having two sets of API, I changed my dll calls to TA_XXX and not the python code API. Now on using TA_UseTrial and TA_TrialDays works like a charm. So I guess, it is better to use the TA_UseTrial call and not the plain UseTrial API. It solved my problem but hoping someone on the forum will confirm.

You should always use the new API, especially when using new features. The deprecated 3.x doesn't support new features like verified trials. This is by-design. Part of the "carrot" to persuade customers to switch to the new API.

It would really help that the Python samples are updated to use the new API. We looked at that for our Ruby interface initially, and that put us back a couple of days. No issues now. Or atleast have a highlighted warning in the code that the Python samples use an older API.

Will send a Ruby sample code using ruby Fiddle library and the new API soon. It may help someone integrating with Ruby and LimeLM