Try it again. I removed the DEVENV_VCPP preprocessor variable, which was not being set consistently anyway. The inline assembly will now always be used when compiling with MSVC, which should sidestep the problem of inconsistent definitions of InterlockedCompareExchange.
But I'm still curious as to where the different definitions came from. -- Andy
