So, I'm on Windows and getting a successful build with VS 2012 Express. I'm using static libraries and had to use the WinDDK to get some libraries that didn't ship with VS 2012 Express that are required for use with LimeLM. However, when I test the app's registration feature it fails. So, I placed a breakpoint at the logic gates directly after the CheckAndSavePKey() function, and when I look at the response it appears I'm getting something that says S_FALSE instead of any of the response codes that are documented in the TurboActivate.h file. I'm not sure what S_FALSE stands for, and thought I would ask on the forums. I thought it might have to do with the difference between TA_USER and TA_SYSTEM since permissions always seem to be an issue, but am not sure. Because I'm building versions of my app for Windows and OSX, I am using pre-processor directives to switch. Here is the code:
#if _WIN32 hr = CheckAndSavePKey(STRCTYPE(serial.c_str()), TA_USER);#else hr = CheckAndSavePKey(serial.c_str(), TA_USER);#endifif (hr == TA_OK){ printf("\nProduct key saved successfully.\n"); hr = Activate();
} else {
printf("\nProduct key failed to save: hr = %i\n", hr);}
Any ideas why I might be getting S_FALSE?