why InterlockedAdd is not available in vs2010?
The InterlockedAdd
function is only available on the Itanium platform. On x86 and x86-64 platforms you can use InterlockedExchangeAdd
instead. This also adds a value to the target variable, but it returns the original value instead of the new value.