I added _AFXDLL macro and got the following two errors:
error C2039: 'InterlockedAdd64': is not a member of '`global namespace''
error C3861: 'InterlockedAdd64': identifier not found
What is the reason and how to work around the issue?
I ran into the issue while trying to add c++/clr support for DLL which uses MFC.
Looks like I'm out of luck if I want to use clr support:
From winnt.h: