I did not modify the header file.
Periodically, I called the function as shown in the tutorial:
GENUINE_OPTIONS opts; opts.nLength = sizeof(GENUINE_OPTIONS); opts.nDaysBetweenChecks = 30; opts.nGraceDaysOnInetErr = 14;
opts.flags = TA_SKIP_OFFLINE;
HRESULT hr = IsGenuineEx(L"3f53034554c5873609e5d6.27574134", &opts);
if (hr == TA_OK || hr == TA_E_FEATURES_CHANGED || hr == TA_E_INET || hr == TA_E_INET_DELAYED) { // your app is activated and genuine
if (hr == TA_E_INET || hr == TA_E_INET_DELAYED) { // TODO: show a warning to your user that this time (or recently) // the IsGenuineEx() failed to connect to the LimeLM servers. } } else { QMessageBox::warning(this, "Piracy Detected!", "Your copy of MC360 NBT Editor is illegitimate. By pirating this software you have illegally broken license terms. This software will no longer function properly!"); // TODO: Not genuine or not activated. Either way you should either // restrict the user from using your app or give the user a trial // of your app. }
The error only occurs in .cpp files that also include <QtCore> which has qdatetime.h in it. TurboActivate is in some way messing with qdatetime.h