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.