Compiler Error C2487

'identifier' : member of dll interface class may not be declared with dll interface

You can declare a whole class with DLL interface, or certain members of a non-DLL interface class. However, you cannot declare a class with DLL interface and then declare a member of that class with DLL interface.