Hey Chad,
Yes you can use TurboActivate with AnyCPU, but if you're making a .NET app we recommend making your app an x86 app. It's far easier and your app will be able to run on both 32-bit and 64-bit versions of Windows.
That being said, it's pretty easy to make your app use the x64 version of TurboActivate on the 64-bit version of Windows and the x86 version of TurboActivate on the 32-bit version of Windows. Here are the steps:
- Copy the x86 version of TurboActivate to your folder (both the .dll and .exe).
- Rename the x64 version of the TurboActivate.dll to "TurboActivatex64.dll"
- Copy the newly renamed dll to your app's folder (don't bother with the exe).
- Add the TurboActivate.cs or TurboActivate.vb class to your project.
- Make a copy of the internal "Native" class and call the copy "Native64"
- Make the Native64 class reference the "TurboActivatex64.dll" file instead of "TurboActivate.dll".
- Change the public functions in the main TurboActivate class to call the Native64 functions on x64 machines and the Native functions on x86 machines.
You can do the last step with the following simple code:
if (IntPtr.Size == 4){ //TODO: call the Native.FunctionName()}else // x64 machine{ //TODO: call the Native64.FunctionName()}
Tell me if this helps.