I am seeing the same effect here. Thank you for the clear description.
case=40680
As a temporary workaround, if you change the code to look like this:
#define DLL_EXPORTING __declspec(dllexport)
DLL_EXPORTING int GetDeviceCount ( )
{
return pDeviceManager->GetDeviceCount();
}
this fixes the problem for me.